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 the use of awk command in unix?
Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?
Explain how to use grep command to list find the records of a file containing 10 different strings?
How does shebang work?
How do I clear my terminal history?
What is the command to compare two files in unix?
How do you grep a case insensitive?
How can we use grep command in unix?
What is the command to find maximum memory taking process on the server?
Why is it called a shebang?
Is it inbetween or in between?
How to display no of records in oracle using unix command?
Why is shebang used?
What is nr in awk command?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?