Wednesday, August 29, 2012

VIM :: remove lines :: pattern

- To remove lines in a file which matches a pattern
- Open file using VIM
$ vim filename.txt

- To remove lines that has "food101" in it
:g/.*food101.*/d