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 general format of unix command syntax?
Differentiate cmp command from diff command.
Which command is used to delete all files in the current directory and all its sub-directories?
How do I use grep to search for a file?
What is the difference between awk and grep?
What is in grep command?
What is the first character of the output in ls l command?
What does #!/ Bin sh do?
What does the “echo” command do?
What is the command to find hidden files in the current directory?
What is the function of grep command in unix?
What is the use of tee command?
What are awk commands?
What is pipe command in unix?
How can we use grep command in unix?