[plug] Vim batch command
Garry
garbuck at westnet.com.au
Sun Sep 26 10:33:49 WST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
| 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
Thanks Ryan! I'll use the Perl way in future.. 8^)==
Garry.
- --
"Microsoft is not the Borg collective. The Borg collective has got
proper networking."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBViqNvdH9DANniC8RAnDaAKDLYZVgf2ClcY/CZ0gwMKUOnxk58gCgxhjo
JyUhlXj5FAtKbLmhLxsz/KU=
=47ig
-----END PGP SIGNATURE-----
More information about the plug
mailing list