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 many unix commands are there?

1164


Explain ‘library functions’ with respect to unix commands?

1181


What command is used to switching between users in unix?

1095


Are you in or at the office?

1131


What is the size of time_t?

1225


What is grep and how do you use it?

1124


What do chgrp command do?

1233


What does 'mkdir' command do in UNIX?

1322


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

1225


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

1793


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

1168


What is difference between grep and find command in unix?

1225


Explain mount and unmount command.

1233


What are reported commands?

1141


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

1180