Dear All,
Can anybody tell me how to predefind no. of selected rows
from a text file.



Dear All, Can anybody tell me how to predefind no. of selected rows from a text file...

Answer / junhua

awk 'NR <= n'

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More Shell Script Interview Questions

Is cmd a shell?

0 Answers  


Write a shell script in Linux to shift all characters in a file forward by five characters. (Thus “a” becomes “f’”).

2 Answers   Ignou, Tripura Info,


how to delete all the files with extension .dat rom a directory tree from root to third level in a single unix command?

4 Answers  


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

0 Answers  


Where are cowrie shells found?

0 Answers  






How do I run a powershell script?

0 Answers  


Why do we write bin bash in shell scripts?

0 Answers  


how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?

0 Answers  


How to redirect both standard output and standard error to the same location?

0 Answers  


What is shell and shell script?

0 Answers  


wats the deinitions for shell utility and filter?

0 Answers  


What is meant by dos operating system?

0 Answers  


Categories