Hi,
I need to delete all the lines which does not contain the "error" word in a file.
so, in vi, I would use
:v/error/d and then save the file.
How can I achieve this in command line?
Thanks in advance
I need to delete all the lines which does not contain the "error" word in a file.
so, in vi, I would use
:v/error/d and then save the file.
How can I achieve this in command line?
Thanks in advance
Comment