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

To print a specific line without using a string.

sed -n '1p' <filename>

Where 1 is teh line number

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to restrict incoming messages?

1042


What do chmod, chown, chgrp commands do?

1221


Which command will print your home directory on screen?

1029


Who command in unix?

1085


Are you in or at the office?

1071


Which unix command lists files/folders in alphabetical order?

1655


Name the various commands that are used for the user information in unix.

1019


Which command is used to find whether the system is 32 bit or 64 bit?

1074


What command will change your prompt to myprompt?

1247


What does this command do? Cat food 1 > kitty

1528


What does grep v grep do?

1018


Name the unix command to find how many days the server has been up.

1110


What is pipe command in unix?

1227


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

1334


Can you explain a little bit about command substitution?

1061