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

sed -n 1,7p <filename>

Is This Answer Correct ?    2 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does the system know where one command ends and another begins?

2270


What are the differences among a system call, a library function, and a unix command?

1243


How do I run a whois command?

1163


What is ‘ps’ command for?

1194


What do chown command do?

1208


What is the command to find hidden files in the current directory?

1200


Which command is used to kill the last background job?

1345


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

1160


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

1260


How do I run a bash script?

1196


What does grep v grep do?

1095


What is the size of time_t?

1226


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

1271


How can we use grep command in unix?

1223


What is the difference between cat command and more command?

1217