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

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

1256


What is the nmap command?

1124


What is the general format of unix command syntax?

1799


What is grep command in unix with examples?

1141


What is pipe command in unix?

1232


What is the pipe command?

1129


why metadb requires a seperate slice to create Solaris volume manager

3084


Explain command to view process running?

1071


What is merge command in unix?

1447


How do I run a bash script?

1116


Which command is used to copy files?

1125


What is unix command?

1204


how to sort the content of the file based on numeric values

1734


Which unix command to make a new directory?

1071


Name the unix command to find how many days the server has been up.

1114