How i'll delete a particular line from the file? Please give
answer as soon as possible. Thanks in advance.

Answer Posted / ansar

Esc dd on command prompt in vi mode.

grep -v "pattern" will also remove the line if we know the
matching pattern on that line.

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What command is used to check the current users?

592


Who invented grep?

649


Which unix command lists files/folders in alphabetical order?

613


What happens when we execute a unix command?

597


What does #!/ Bin sh do?

587






Is grep faster than awk?

556


How do I open a port?

587


What does this command do? Cat food 1 > kitty

974


What do chmod command do?

600


Explain command to display different lines that are found when compare two files?

676


Write a command to display a file’s contents in various formats?

619


What does pipe () return?

590


How do I search for text in vi?

584


Is it inbetween or in between?

578


How many unix commands are there?

623