-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2005-01-23 a las 16:25 +0100, Carlos Lorenzo Matés escribió:
Una vez por la lista inglesa surgio este mismo tema, y me lo anote, aqui te va el original en ingles
A ver.
I would create a script file for vi. Something like the following: :%s/This is the original line/This is the new line/g :wq
If you put the above two lines in a text file named script, you could then run a command like the following:
for file in *.html ; do vi -s script $file ; done
This would change every file in the current directory with an html extension (assuming the script file was placed in the same directory).
supongo que esto te vale.
También, es un metodo interesante, con vi alimentado por un script. Puede que sed sea más rápido en este caso, pero vi es posiblemente más ajustable. - -- Saludos Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFB9FGltTMYHG2NR9URAqYKAJ95mrYex/P5UJkEurYRd7Xo5jWdmgCeKsA/ SuOQJM0luqoBPkiK9vplBf4= =B0OE -----END PGP SIGNATURE-----