I want to know command that can use to delete line from particular file and when I open file again that line should not be there. So please provide me some suggestions about this. Any help will be appreciated.
I want to know command that can use to delete line from particular file and when I open file again that line should not be there. So please provide me some suggestions about this. Any help will be appreciated.
By using one process you can delete line from file. There are options included with command. Options are utilized to count and detect lines.
Code:(echo "g//d"; echo 'wq') | ex -s My_list "g//d" performs 'delete' operation and 'wq' Writes file to disk and 'Quits' after updating file.
Bookmarks