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 / krishna reddy

sed -n '7p' <filename>

or
head -8 <filename>|tail -1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the pipe command?

1185


What are bash commands?

1154


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

1121


What is the nmap command?

1177


What does the metacharacter mean?

1129


What does the “echo” command do?

1147


What are the commands in UNIX to list the files in a Directory?

1175


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1308


What is the use of find command in unix?

1143


Write a command to kill the last background job?

1098


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

1165


What is a command and examples?

1218


How do you grep a case insensitive?

1044


why metadb requires a seperate slice to create Solaris volume manager

3153


What is the command to find maximum memory taking process on the server?

1206