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

sed -n '1p' or head -1

Is This Answer Correct ?    31 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this command do,"$more readme.txt“?

1161


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

1221


Is grep faster than awk?

1047


What is a command and examples?

1240


How does pipe () work?

1098


why metadb requires a seperate slice to create Solaris volume manager

3172


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

1232


What is pipe command in unix?

1307


What is ctrl d?

1101


What does grep v grep do?

1081


What is the difference between cat command and more command?

1211


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1223


Differentiate cat command from more command.

1156


What is the pipe command?

1190


Explain mount and unmount command.

1226