Non Perl solution; tested on linux; I think this should be usable in cygwin as well:
find . -iname "*.pl" -o -iname "*.cgi" | xargs sed -i.bac -e '1s"^#!.\+$"#! /usr/bin/perl"'Udate
In reply to Re: Automatically Rewrite Shebang Line on Multiple Files
by linuxer
in thread Automatically Rewrite Shebang Line on Multiple Files
by spickles
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |