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 is grep r?

1108


What is the nmap command?

1195


Who wrote grep?

1072


What is awk command used for?

1247


How do I delete files from command prompt?

1228


How do I use nslookup?

1099


Write a command to display a file’s contents in various formats?

1215


Name the various commands that are used for the user information in unix.

1093


Enlist some filename manipulation commands in unix.

1163


What is the command to compare two files in unix?

1127


What is the search command in unix?

1094


How to find $ai_serual resolved path by using unix

1763


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

2107


What is grep in bash?

1069


What is grep short for?

1051