Forum Moderators: phranque
Yes, I can use Dreamweaver but prefer using something simpler.
Is there a tool I should be using?
By the way, other tools I love are winhttrack and xenu.
tx,
C.
[boolean.ca...]
NB: This program assumes that all files are ASCII (eg: HTML files), it could do untold damage to binary files!
# Very simple search and replace in Perl
# Use PERL SR.PL <string to find> <replacement string>
$find = $ARGV[0];
$replace = $ARGV[1];
#Open directory
opendir(DIR, ".");
@fnames=readdir(DIR);
foreach $file (@fnames)
{
open(FILE, $file);
open(TGT, ">sr.tmp");
while (<FILE>)
{
# Here we are using a case insensitive transformation
# change the /gi to /g for case sensistive
$_ =~ s/$find/$replace/gi;
print TGT "$_";
}
close(FILE);
close(TGT);
rename ("sr.tmp",$file);
}
Matt