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 are the differences among a system call, a library function, and a unix command?
How do I run a bash script?
How do I clear my terminal history?
What is the nmap command?
What does find command return in unix?
How do you grep a case insensitive?
What is the unix command to confirm a remote host is alive or not?
What are some command words?
What do chmod, chown, chgrp commands do?
What is the use of egrep command in unix?
How many unix commands are there?
What is used to type command?
Are you in or at the office?
How to display no of records in oracle using unix command?
What is {} in find command?