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 unix command?

1321


What is the command to find hidden files in the current directory?

1235


What is grep short for?

1102


How does pipe () work?

1147


What does pipe () return?

1129


Why is it called grep?

1086


Is grep faster than awk?

1085


What does the metacharacter mean?

1191


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

1280


How do I open a port?

1143


Which command will print your home directory on screen?

1152


what is the advaantage of each user having its own copy of the shell?

2614


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

1266


Describe the zip/unzip command using gzip.

1226


What is the nmap command?

1240