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

if we create a file, in that 10 rows(means 1,2,....9,10
like). i want 7 row exactly, which command use in unix?
plz send this question.

Answer Posted / hari

hai this Hari

try this

$sed -n '1,7p' <filename>

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain command to view process running?

1072


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1152


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

1159


How do I delete files from command prompt?

1159


What is awk command used for?

1136


What do chgrp command do?

1147


Name the general commands in using unix os for a beginner?

1094


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

1109


What is the difference between cat and more command?

1230


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

1016


Can you enlist some commonly used network commands?

1057


What are grep patterns?

1029


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

1144


What do chmod, chown, chgrp commands do?

1226


Which command is used to kill the last background job?

1294