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

What is awk used for?

1097


Explain ‘system calls’ with respect to unix commands?

1061


What does the md command do?

1089


What is awk good for?

1108


How do I use nslookup?

1063


Differentiate cat command from more command.

1109


What is the command to compare two files in unix?

1077


Who command in unix?

1104


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1169


Can you explain a little bit about command substitution?

1075


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1173


What is the unix command to confirm a remote host is alive or not?

1170


What are bash commands?

1114


What do chgrp command do?

1164


Which command will print your home directory on screen?

1058