Syntactic Confectionery Delight | |
PerlMonks |
Re: question about perlby Trimbach (Curate) |
on Mar 13, 2002 at 00:37 UTC ( [id://151279]=note: print w/replies, xml ) | Need Help?? |
If all your scripts are in one directory, and they all end with (for example) .pl, you can do it in one line from a UNIX shell: user% perl -pi.bak -e 'BEGIN{undef $/};s[^#\!/usr/local/bin/perl][#\!/usr/bin/perl]' *.pl One-liners rock! Gary Blackburn Correction: Code enhanced thanks to mahi
In Section
Seekers of Perl Wisdom
|
|