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
What is unix command line?
Explain command to display different lines that are found when compare two files?
Is grep faster than awk?
How do you grep a case insensitive?
What is .sh file?
What is in grep command?
How do I search for a file in unix command?
What is ‘ps’ command for?
What command will change your prompt to myprompt?
What is awk good for?
What is updatedb?
What are reported commands?
What do chmod, chown, chgrp commands do?
Is ‘du’ a command? If so, what is its use?
Is command prompt unix?