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
Why is shebang used?
Name the various commands that are used for the user information in unix.
What is difference between grep and find command in unix?
How do you grep a case insensitive?
Name the general commands in using unix os for a beginner?
What will the following command do?
What is the difference between grep and grep?
Which command is used to create a directory?
How do I run a whois command?
What is the functionality of a top command?
How do I use nslookup?
What is rmdir command?
What are the unix commands?
What does this command do? Cat food 1 > kitty
Differentiate cat command from more command.