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

What is in grep command?

1115


What will the following command do?

1061


What command is used to switching between users in unix?

1023


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

1141


What do know about tee command?

1099


Who command in unix?

1083


Is command prompt unix?

1092


What is unix command line?

1171


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

1074


What is {} in find command?

1048


How do I use nslookup?

1034


Which command can you use to find the currently running process in unix server?

1066


What command is used to check the current users?

1058


What is the difference between awk and grep?

1144


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

1152