A slight modification on this is the following line shell script/perl one-liner that came from a short discussion on the LUG for an easy way to change email addresses in every page on my site:
I think I can say this is the first snippet that made me think - wow! Perl rocks! :-) I'm sure TMTOWTDI, but I still press this code into service now and again.for i in *.html; do perl -wpi.bak -e 's/oldusr\@olddomain/newusr\@newdomain/g' $i; done
In reply to Re: Need to change, oh, every file at once?
by BazB
in thread Need to change, oh, every file at once?
by z3d
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |