in reply to Automatically Rewrite Shebang Line on Multiple Files
Non Perl solution; tested on linux; I think this should be usable in cygwin as well:
Udate