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 / murthy

Hi,

Try with the below command

sed -n '7p' <file name>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the command ' $who | sort –logfile > newfile' do?

1280


What is the difference between cat command and more command?

1212


How do you repeat a command in terminal?

1232


What is the use of the command 'ls -x chapter[1-5]' ?

1216


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

1216


What is the use of sed command in unix?

1215


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

1233


What does pipe () return?

1080


Which command will print your home directory on screen?

1087


What are file commands?

1236


How to display no of records in oracle using unix command?

1176


What is “chmod” command?

1186


Are you in or at the office?

1127


What does awk stand for?

1087


What is awk used for?

1138