> Silly question regarding vi:
>
> I want to replace all occurences of susank with susanr in my aliases file,
> but the following syntax fails to find any matches:
>
> :s/susank/susanr/g
You are not specifying any range so the operation defaults to current line.
Use % for the whole file:
:%s/susank/susanr/g
Other ranges:
:1,10s (substitue in first ten lines)
:1,.s (substitute up to the current line)
:.+1,$s (substitute from one after the current line to end)
For detailed info read the manual. ;-)
Go wild!
Cheers,
Dave.
---
David Zverina
Alt Key Pty. Ltd.
http://www.altkey.com
PO Box 3121, Parramatta, 2124, Australia
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text