spickles has asked for the wisdom of the Perl Monks concerning the following question:
Before I write my own script, I was wondering if anyone has already written a script to parse a directory looking for .pl and .cgi files and change the shebang line? I've got an installation of xampp and perl that I want to move from my c:\ drive to a portable drive. So I was thinking I would parse the files in a directory that have a shebang line and re-write it to point to the new location.
Regards,
Scott
Regards,
Scott
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Automatically Rewrite Shebang Line on Multiple Files
by samtregar (Abbot) on Feb 11, 2009 at 21:39 UTC | |
by ikegami (Patriarch) on Feb 11, 2009 at 22:08 UTC | |
by spickles (Scribe) on Feb 16, 2009 at 22:22 UTC | |
by ikegami (Patriarch) on Feb 16, 2009 at 23:30 UTC | |
by linuxer (Curate) on Feb 11, 2009 at 21:53 UTC | |
by samtregar (Abbot) on Feb 11, 2009 at 22:07 UTC | |
Re: Automatically Rewrite Shebang Line on Multiple Files
by linuxer (Curate) on Feb 11, 2009 at 22:28 UTC | |
Re: Automatically Rewrite Shebang Line on Multiple Files
by repellent (Priest) on Feb 12, 2009 at 06:19 UTC |
Back to
Seekers of Perl Wisdom