Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

0 Answers  


What are the default permissions of a file when it is created?

0 Answers  


What is the use of "shift" command in passing parameters?

1 Answers  


What is the meaning of $1 in shell script?

0 Answers  


What are the advantages of shell script?

0 Answers  


What does $1 mean in bash?

0 Answers  


What is the equivalent of a file shortcut that we have a window on a linux system?

0 Answers  


Is SSO and SSL support BOXI?

2 Answers  


What is the use of echo in shell script?

0 Answers  


How to use arguments in a script?

0 Answers  


How will you list only the empty lines in a file (using grep)?

4 Answers   ANZ,


What is a shell in operating system?

0 Answers  


Categories