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

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

1270


What does touch command do in unix?

1482


Give the command for finding the current date.

1177


What is the use of the command 'ls -x chapter[1-5]' ?

1271


What is awk command used for?

1328


What is grep short for?

1105


What is grep and how do you use it?

1176


What is the difference between grep and grep?

1189


What command is used to switching between users in unix?

1132


What's a command word?

1254


How do I search for text in vi?

1103


What do chgrp command do?

1289


Describe the zip/unzip command using gzip.

1227


How do you grep a case insensitive?

1118


What does 'mkdir' command do in UNIX?

1376