Linux Today: Linux News On Internet Time.





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: