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

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

1093


Can you explain a little bit about command substitution?

1118


What does the command ' $who | sort –logfile > newfile' do?

1280


What is pipe command in unix?

1307


Can you enlist some commonly used network commands?

1121


How do I clear my terminal history?

1181


Which command is used to create a directory?

1172


What is difference between grep and find command in unix?

1217


Which command can you use to find the currently running process in unix server?

1130


What does awk stand for?

1087


Describe the zip/unzip command using gzip.

1163


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

1167


How to use grep command to list find the records of a file containing 10 different strings?

1132


Explain ‘library functions’ with respect to unix commands?

1175


What is sed awk grep?

1139