Re: shell script question
Wow, this looks just like sed(1). Sed rules!
> perl rules:)
> rename 's/([A-Z])/_\l$1/g' *
> will do the job.
> As I already pointed out on this list, rename cames with the standard
> perl package of potato.
> By the way,
> rename 's/([A-Z])/_\l$1/g;s/^_([a-z])/\u$1/' *
> will avoid putting the underscore at the beginning, changing back _a
> into A.
> - --
> The Hobbit
> ICQ #56656060
> I am the "ILOVEGNU" signature virus. Just copy me to your signature.
> This email was infected under the terms of the GNU General Public
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.1 (GNU/Linux)
> Comment: Processed by Mailcrypt 3.5.5 and Gnu Privacy Guard <http://www.gnupg.org/>
> -----END PGP SIGNATURE-----
> Unsubscribe? mail -s unsubscribe email@example.com < /dev/null