On 21 February 2011 21:38, Keith Edmunds <k...@midnighthax.com> wrote: > On Mon, 21 Feb 2011 21:21:14 +0000, l...@discoverlinux.co.uk said: > >> In vi >> >> :1,$s/_[0-9][0-9][0-9][0-9]/found/g > > In case it isn't clear, Vim is available on Windows as well. I know Vim > isn't everyone's cup of tea (for some inexplicable reason), but good to > know that there is a powerful editor available for those unfortunate > enough to need to edit files on a Windows platform.
also, you can save a couple more keystrokes if you want to operate on all lines in the buffer: :%s/find/replace/g -- regards, jr. time flies like an arrow, fruit flies like a banana. -- Next meeting: Blandford Forum, Wednesday 2011-03-02 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ How to Report Bugs Effectively: http://goo.gl/4Xue