In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (David Gilden) wrote:
> perl -e 'foreach $file (glob("*")) {grep '../forum_idx.pl'
>'../cgi-bin/forum_idx.pl');}'
you just want to go through each file and replace those instances?
perl -pi.old -e "s|../forum_idx.pl|../cgi-bin/forum_idx.pl|g" *
see the perlrun manpage for details on all of the switches.
http://www.perldoc.com/perl5.6/pod/perlrun.html
--
brian d foy <[EMAIL PROTECTED]> - Perl services for hire
CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html
Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]