[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shell script question



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hans scripsit:
>So basically my question is 'how to translate one character into two and
>vice versa?' Anyone? Thanks for the input.


I forgot... to get the reverse transformation _file_name -> FileName
simply use

rename 's/_([a-z])\u$1/g' *

- -- 
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
License.
-----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/>

iD8DBQE5caEjv9iOG/S6owkRAscpAJwL8jNV02uQo8E7L2tGeLPC1/UOjACfd09/
aI3b7FuM4Dlji8GdMvdISGo=
=ctUA
-----END PGP SIGNATURE-----



Reply to: