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

if you want 1 to 7 row then
head -7 filename
if you want only 7th row exactly then
head -7 filename|tail -1
or
tail +7 filename|head -1
or
cat -n filename|grep '^7' filename

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a command to display a file’s contents in various formats?

1207


How do I run a whois command?

1154


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

1126


What is the significance of the 'tee' command?

1195


Differentiate cat command from more command.

1144


What is the search command in unix?

1089


What is awk used for?

1127


What does the metacharacter mean?

1131


What do chown command do?

1183


What is the use of awk command in unix?

1121


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

1206


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

1155


What is merge command in unix?

1506


Which command will print your home directory on screen?

1078


What happens when we execute a unix command?

1135