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

A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me

Answer Posted / raja

head -n <filename>

here n for no.of records we want.

ur quention my ans is
head -1 <filename>

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is grep r?

1163


What are file commands?

1291


Is grep faster than awk?

1085


What are the general commands in using unix os for a beginner?

1221


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

1329


How can you see the command line history?

1188


How do you repeat a command in terminal?

1297


Why is shebang used?

1196


Can you explain a little bit about command substitution?

1164


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1362


How does pipe () work?

1149


How do I find previous commands in unix?

1253


How to display no of records in oracle using unix command?

1231


Differentiate cmp command from diff command.

1237


What do chmod command do?

1288