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 time_t?

1163


How many unix commands are there?

1209


what is the advaantage of each user having its own copy of the shell?

2615


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

1206


What is ctrl d?

1157


What do chmod command do?

1288


Why is it called a shebang?

1248


What is the use of sed command in unix?

1259


How do I run a bash script?

1241


Which command is used to delete all files in the current directory and all its sub-directories?

1318


What is the difference between cat command and more command?

1272


Describe the usage and functionality of the command rm –r * in unix?

2185


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

1263


What is the difference between cat and more command?

1366


What is the difference between awk and grep?

1338