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 awk command used for?

1255


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

2115


Name the unix command to find how many days the server has been up.

1167


Why is it called a shebang?

1204


What is the nmap command?

1199


How do I run a whois command?

1162


Explain command to view process running?

1146


What is unix command line?

1272


How do I use grep to find a file?

1123


What does grep v grep do?

1095


What is the use of sed command in unix?

1215


What is the command to find maximum memory taking process on the server?

1231


How to find $ai_serual resolved path by using unix

1766


What is $0 bash?

1214


Are you in or at the office?

1131