skip to main
|
skip to sidebar
KASHmatic
Blogging Work
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
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Kashi Vishwanath Revanna
Denton, Texas, United States
Blogging is also a way of logging, documenting and retrieving data when needed
View my complete profile
Blog Archive
►
2013
(2)
►
May
(2)
▼
2012
(4)
►
December
(2)
▼
August
(1)
VIM :: remove lines :: pattern
►
January
(1)
►
2011
(14)
►
December
(1)
►
October
(3)
►
September
(3)
►
June
(1)
►
April
(5)
►
February
(1)
►
2010
(48)
►
October
(3)
►
September
(4)
►
August
(5)
►
July
(5)
►
June
(3)
►
May
(9)
►
April
(4)
►
March
(15)
Search This Blog
Followers
No comments:
Post a Comment