"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 ERROR/ig' *.prg

it will process all *.prg files in current directory, making backups of
originals in .bak files. Is that what you need?

- RaFaL Pocztarski, [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to