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

What are "c" and "b" permission fields of a file?

0 Answers  


Write down the syntax of "for " loop

0 Answers  


In shell scripting if text is surrounded by single quotes what does it denotes?

3 Answers  


How do I save a powershell script?

0 Answers  


Why do we write bin bash in shell scripts?

0 Answers  






What is the difference between grep and egrep?

0 Answers  


what are command line arguments? what is the need of those?

1 Answers   Flipkart,


What language is shell scripting?

0 Answers  


Is bash a shell script?

0 Answers  


How do I start a shell script?

0 Answers  


How to print the first array element?

0 Answers  


How many fields are present in a crontab file and what does each field specify?

0 Answers  


Categories