Thank you RaFal,
That's the idea!!
>Use this from the command line:
>
> perl -pi.bak -e 's/\bON ERROR\b/*ON ERROR/ig' *.prg
>
>it will process all *.prg files in current directory, making backups of
>originals in .bak files. Is that what you need?
--
To unsubscribe, e-mail: [EMAIL PROTECT
"José A. Ferrer" wrote:
> I have a bunch of old xBase *.prg text files. I need to replace the
> sentence ON ERROR or on error with *ON ERROR in all *.prg text files in a
> given directory.
> How can it be done in Perl ?
Use this from the command line:
perl -pi.bak -e 's/\bON ERROR\b/*ON ER
Hi all,
I have a bunch of old xBase *.prg text files. I need to replace the
sentence ON ERROR or on error with *ON ERROR in all *.prg text files in a
given directory.
How can it be done in Perl ?
TIA.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR