http://blogs.terrorware.com/geoff/2004/07/24/howto-global-replace-in-vi/
and from http://www.bo.infn.it/alice/alice-doc/mll-doc/linux/vi-ex/node26.html
- Code: Select all
%s/old/new/gc
Return to Linux Server Configuration Notes
Users browsing this forum: No registered users and 14 guests