In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (John W. Krahn)
wrote:
> brian d foy wrote:
> > In article <[EMAIL PROTECTED]>,
> > [EMAIL PROTECTED] (David Gilden) wrote:
> > > perl -e 'foreach $file (glob("*")) {grep '../forum_idx.pl'
>'../cgi-bin/forum_idx.pl');}'
> > perl -pi.old -
Brian D Foy wrote:
>
> 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|..
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
Hello,
What is the best way do to search and replace operation on a whole directory on a UNIX
box?
Sed?
Awk?
Perl?
I know this is wrong, what I want to do is a search and replace,
find '../forum_idx.pl' and replace with '../forum_idx.pl'
I have to hit a whole directory with this change, (and