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 / eswar

head -n 1 filename

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1339


How can we use grep command in unix?

1143


What difference between cmp and diff commands?

1247


Write a command that will display files in the current directory, in a colored, long format.

1161


What does awk stand for?

1035


What is s and g in sed command?

1061


What is the command to find hidden files in the current directory?

1142


What is “chmod” command?

1099


How does shebang work?

1020


What is the use of sed command in unix?

1145


What is the difference between awk and grep?

1151


What does pipe () return?

1025


Which command is used to create a directory?

1097


What command is used to check the current users?

1069


How to find $ai_serual resolved path by using unix

1642