Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


a little vi trick

Apr 30, 2009, 10:33 (4 Talkback[s])

[ Thanks to j00p34 for this link. ]

"I open all files containing foo in vi: v

i $(grep -l 'foo' *)

"start macro recording to register q

qq

"search and replace in the whole file

/%s/foo/bar/g"

Complete Story

Related Stories: