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


Please Help Members By Posting Answers For Below Questions

What are the differences among a system call, a library function, and a unix command?

567


How do I run a bash script?

580


How do I clear my terminal history?

581


What is the nmap command?

581


What does find command return in unix?

592






How do you grep a case insensitive?

538


What is the unix command to confirm a remote host is alive or not?

579


What are some command words?

561


What do chmod, chown, chgrp commands do?

633


What is the use of egrep command in unix?

624


How many unix commands are there?

625


What is used to type command?

539


Are you in or at the office?

609


How to display no of records in oracle using unix command?

588


What is {} in find command?

581