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

Hi, If you want to display 7th line from the file, simple
way is,

$head -7 <filename>| tail -1

Thanks
Kantha

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1223


What are filter commands in unix?

1207


What is grep command in unix with examples?

1228


Explain ‘system calls’ with respect to unix commands?

1101


What is the use of the tee command?

1102


What does 'mkdir' command do in UNIX?

1322


Is ‘du’ a command? If so, what is its use?

1159


What is difference between grep and find command in unix?

1223


What is s and g in sed command?

1121


What does sed command do in unix?

1209


Differentiate cat command from more command.

1163


What do chmod, chown, chgrp commands do?

1297


What is command statement?

1185


What is awk used for?

1142


What difference between cmp and diff commands?

1319