user% perl -pi.bak -e 'BEGIN{undef $/};s[^#\!/usr/local/bin/perl][#\!/usr/bin/perl]' *.pl
One-liners rock!
Gary Blackburn
Trained Killer
Correction: Code enhanced thanks to mahi
In reply to Re: question about perl
by Trimbach
in thread How do I change the shebang line for all perl scripts in a directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |