[plug] Vim batch command
Ryan
ryan at is.as.geeky.as
Sun Sep 26 09:13:47 WST 2004
On Sun, 2004-09-26 at 08:38, Garry wrote:
> I'm using " vim *html s/bgcolor='white'/bgcolor="#00cc00" ".
>
> Can't find any clues in the vim docs, and I haven't worked out sed to
> use on it's own on files yet..
Maybe you need to escape the inner double quotes?
Don't know about vim or outputting files in sed - use perl :)
perl -p -e 's/bgcolor='white'/bgcolor="#00cc00"/ig' *.html
You could also add -i.bak to leave a backup of each file
Ryan
More information about the plug
mailing list