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

hai this Hari

try this

$sed -n '1,7p' <filename>

Is This Answer Correct ?    0 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?

1256


What is the use of the tee command?

1078


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

1188


Explain ‘library functions’ with respect to unix commands?

1140


Can you explain a little bit about command substitution?

1084


What is the comma to show the space allocation of files?

1055


What happens when we execute a unix command?

1112


What is $0 bash?

1165


Why is awk called awk?

1048


What do know about tee command?

1131


What is sed awk grep?

1095


How does shebang work?

1043


What is the use of sed command in unix?

1165


Which command will print your home directory on screen?

1060


How do I use grep to search for a file?

1030