On Wed, May 22, 2002 at 05:58:59PM -0700, drieux wrote: > On Wednesday, May 22, 2002, at 01:35 , John W. Krahn wrote: > >perl -0777pi~ -e's^/usr/local^/tmp/local^' mybinaryfile.out > > way too freaky.... it works... but I am having > problems with the verification - since I just > ran this against an od -c /usr/local/bin/perl > and I find places in it in which there are instances > of "/usr/local" that do not show up as "/tmp/local" > in the version I just created with the above....
That should be fixed by adding the /g option to the regex. I.e. perl -O777pi~ -e's^/usr/local^/tmp/local^g' mybinaryfile.out Michael -- Administrator www.shoebox.net Programmer, System Administrator www.gallanttech.com -- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]