Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
find docs -type f -name "*.html" | xargs perl -i -p -e 's/foo/bar/g'
use File::Find;
sub change {
if( -f && /\.html$/ ) {
my $in = $_;
my $out = "$in.$$";
open( IN, $in ) or die;
open( OUT, ">$out" ) or die;
while( <IN> ) {
s/foo/bar/g;
print OUT;
}
close IN;
close OUT;
rename( $out, $in );
}
}
my @dirs = qw( docs );
find ( \&change, @dirs );