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

Answer Posted / yadvinder singh

First of all open the file in which u want to delete the
line by
vi filename

GO to that perticular line,
now press esc then press dd
it will delete ur whole line

then if u want to save the file
first press esc then type :wq then press enter
it will save ur file
..you can check it.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of the tee command?

801


What does the command ' $who | sort –logfile > newfile' do?

1006


How does the system know where one command ends and another begins?

1839


What does find command return in unix?

828


What is the search command in unix?

804






How does shebang work?

793


How do I use grep to find a file?

800


What does the “echo” command do?

825


What is the nmap command?

793


How do I search a whole word in vim?

869


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

839


What do know about tee command and its usage?

833


Why is grep called grep?

978


What is the difference between grep and grep?

784


What is ctrl d?

786