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

Esc dd on command prompt in vi mode.

grep -v "pattern" will also remove the line if we know the
matching pattern on that line.

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enumerate some of the most commonly used network commands in unix?

1215


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

1226


What does the command '$ls | wc –l > file1' do?

1299


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1357


How do I search for a file in unix command?

1061


What is the difference between cat command and more command?

1269


How do I use grep to search for a file?

1101


What is the functionality of a top command?

1158


What will the following command do?

1174


Explain the steps that a shell follows while processing a command.

1286


Can you explain a little bit about command substitution?

1164


How do I find previous commands in unix?

1247


Explain mount and unmount command.

1278


What does grep v grep do?

1125


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

1199