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...

to list a particular line in the file

Answer Posted / abani_mahana

sed -n '1p' <filename>
head -n filename | tail -1
(change n as per your requirements)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I use grep to find a file?

1164


How do I search for text in vi?

1102


What is s and g in sed command?

1164


How do I use grep to search for a file?

1102


What is a bash command?

1240


Give the command for finding the current date.

1176


What is command statement?

1241


How can you see the command line history?

1185


What is awk good for?

1193


Enlist some filename manipulation commands in unix.

1221


What do chown command do?

1257


What command is used to check the current users?

1175


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

1280


What is the comma to display different lines that are found when compare two files?

1247


What does pipe () return?

1128