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 unix command line?

796


Explain command to display different lines that are found when compare two files?

870


Is grep faster than awk?

728


How do you grep a case insensitive?

718


What is .sh file?

826






What is in grep command?

836


How do I search for a file in unix command?

730


What is ‘ps’ command for?

830


What command will change your prompt to myprompt?

899


What is awk good for?

785


What is updatedb?

758


What are reported commands?

787


What do chmod, chown, chgrp commands do?

872


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

819


Is command prompt unix?

773