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 / deshdeep saxena

awk 'NR==7{print}' filename will give you the seventh line
as output
awk 'NR<=7[print]' filename will give you from 1st line to
the seventh line :-)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the behavioural difference between cmp and diff commands?

1211


What does 'mkdir' command do in UNIX?

1237


What is the unix command to confirm a remote host is alive or not?

1134


What is the pipe command?

1122


How do I run a bash script?

1105


What does grep v do?

998


What is ctrl d?

1042


Explain mount and unmount command.

1140


What is merge command in unix?

1442


Why is awk called awk?

1013


Differentiate cat command from more command.

1079


Is grep faster than awk?

982


What is the difference between cat command and more command?

1125


What is the size of time_t?

1145


Which command should you use to find the remaining disk space in unix server?

1231