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

What does this command do,"$more readme.txt“?

1099


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

1152


What command will change your prompt to myprompt?

1247


What are grep patterns?

1012


What is unix command line?

1173


What are the dos commands?

1192


What is the use of cut command in unix?

1290


Is grep faster than awk?

984


Differentiate cmp command from diff command.

1098


Write a command to kill the last background job?

1020


What are the unix commands?

1026


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

1961


How do I search for text in vi?

985


How do I use nslookup?

1035


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

1110