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

cat fileName | head -n 1

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ‘ps’ command for?

1131


What is grep r?

1040


What do chown command do?

1113


What do chgrp command do?

1138


What command is used to switching between users in unix?

1023


What is the use of sed command in unix?

1135


What is the difference between awk and grep?

1144


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

1334


What is rmdir command?

1037


What are filter commands in unix?

1101


What is {} in find command?

1048


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

1099


What is the search command in unix?

1042


How to find $ai_serual resolved path by using unix

1635


How do you repeat a command in terminal?

1149