|
|
|
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




pimteam
zjakupec
Pushkartyagi
niprasnja
lzodan
mlcorak
bonikolic
mezestic1
rekapec
Kasimu
dannyboy
sundaramkumar
mattrmiller
all-battery
Pio
Cloudgen
i_kenneth
ASmith
mycodeofshailendra
ctiggerf

|
|
|
lavaramano
This snippet remove all lines containing the string STRING. Not just the string.
see http://unixhelp.ed.ac.uk/CGI/man-cgi?grep