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...

how to find the 51th record of a file containing 100 records
in unix.

Answer Posted / dinesh babu

awk '{if (NR==51) print$0}' filename

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I use grep to search for a file?

1106


What does the command '$ls | wc –l > file1' do?

1302


What difference between cmp and diff commands?

1352


What is the use of sed command in unix?

1259


Which command is used to kill the last background job?

1392


What is in grep command?

1215


What is pipe command in unix?

1364


What is the comma to show the space allocation of files?

1137


Is grep faster than awk?

1085


What will the following command do?

1176


How can you see the command line history?

1187


What is the size of time_t?

1272


What is awk command used for?

1328


What does touch command do in unix?

1482


What is the use of the command 'ls -x chapter[1-5]' ?

1271