Here a quick example to replace a string in the whole text via the vi editor (unix):
:1,$s/search text/replace text/g
As I needed to re-search it for the second time, I thought to put it on my blog...
Vi Cheat sheet: http://www.lagmonster.org/docs/vi.html
Monday, April 10, 2006
Remember Vi commands
Posted by Dimitri Gielis at 14:37
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment