remove a string from a file using grep
7
lavaramano
how to remove a string from a plain text using just grep.
grep -v "S T R I N G" file > /tmp/my_tmp_file && mv /tmp/my_tmp_file file



me
jamesmcm
Can
Kelmi
ysg
dannymo2
chorny
wallie
Hackdemian
impomatic
dannyboy
sundaramkumar
mattrmiller
Pio
i_kenneth
ASmith
ctiggerf
sehrgut
bertheymans
SCoon
lavaramano
This snippet remove all lines containing the string STRING. Not just the string.
see http://unixhelp.ed.ac.uk/CGI/man-cgi?grep