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

how to sort the content of the file based on numeric values

1742


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

1164


What is the first character of the output in ls l command?

1181


What is ctrl d?

1062


What is ‘ps’ command for?

1154


What do know about tee command and its usage?

1144


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

1173


What is the use of sed command in unix?

1163


What are reported commands?

1092


How to find $ai_serual resolved path by using unix

1675


How do I search a whole word in vim?

1144


What does the md command do?

1090


Why is shebang used?

1071


What is the use of egrep command in unix?

1144


What is the difference between cat command and more command?

1149