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

hw will u use awk in replacing cahrs and files

3298


Write a command that will display files in the current directory, in a colored, long format.

1276


How do I use nslookup?

1148


Which command is used to delete all files in the current directory and all its sub-directories?

1318


What are the differences among a system call, a library function, and a unix command?

1276


What happens when we execute a unix command?

1205


What do chgrp command do?

1289


What does this command do,"$more readme.txt“?

1211


What is the use of cut command in unix?

1432


What is the command to compare two files in unix?

1172


What is “chmod” command?

1244


What are the unix commands?

1157


Write a command to kill the last background job?

1155


What is the use of find command in unix?

1216


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

1169