Re: Newbie: Need string substitution

2001-10-25 Thread "José A. Ferrer"
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

Re: Newbie: Need string substitution

2001-10-25 Thread RaFaL Pocztarski
"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

Newbie: Need string substitution

2001-10-24 Thread "José A. Ferrer"
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