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...

How i'll delete a particular line from the file? Please give
answer as soon as possible. Thanks in advance.

Answer Posted / ranjan tikoo

If I have 10 lines in the file and I want to delete line 5
and 6 then use

sed '5,6 d' temp1.txt > temp2.txt

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who command in unix operating system?

1126


Is it inbetween or in between?

1038


What do know about tee command?

1148


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

1161


Why is it called a shebang?

1175


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1203


Using unix command how to display no of records in oracle?

1151


Explain ‘system calls’ with respect to unix commands?

1087


Explain how to use grep command to list find the records of a file containing 10 different strings?

1062


What are some command words?

1129


What is the use of find command in unix?

1136


Is ‘du’ a command? If so, what is its use?

1142


Explain command to show the space allocation of files?

1114


Why is shebang used?

1111


What are the general commands in using unix os for a beginner?

1163