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 / meenu

if u want first 7 rows then
head -n7 <filename>
but if you want only 7th row then
awk 'nr==7 {print}' <fileanme>
or
tail -n4 <filename>|head -n1

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1329


What is the use of cut command in unix?

1432


What do chgrp command do?

1289


What is the search command in unix?

1134


What is the difference between cat command and more command?

1272


What is the nmap command?

1244


How do I use grep to find a file?

1164


Which command is used to find whether the system is 32 bit or 64 bit?

1201


Explain ‘library functions’ with respect to unix commands?

1218


How do I use grep to search for a file?

1106


How can we use grep command in unix?

1264


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

1220


How do I open a port?

1145


What is grep r?

1163


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

1276