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

by useing sed command we can delete a particular line foe example...
Ans: sed 'nd' < filename
...here n means no.of the line for ex we want to delete 5th line
sed '5d' < filename...by using this command we delete multiple lines also....
sed '5,8d' < filename..this will deletes 5th to 8th line...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the general format of unix command syntax?

1904


Differentiate cmp command from diff command.

1159


Which command is used to delete all files in the current directory and all its sub-directories?

1249


How do I use grep to search for a file?

1048


What is the difference between awk and grep?

1230


What is in grep command?

1156


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

1196


What does #!/ Bin sh do?

1061


What does the “echo” command do?

1143


What is the command to find hidden files in the current directory?

1180


What is the function of grep command in unix?

1167


What is the use of tee command?

1143


What are awk commands?

1145


What is pipe command in unix?

1290


How can we use grep command in unix?

1191