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

RE: Some basic unix commanding, more please:



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

Hi,
  as perl people says, there is more than one way to do it, but perl
way is the right one:) In debian dist there is a perl scrip called
rename, which allows you to transform your filenames as you
please:). For instance, to transform ONE.HTM, TWO.HTM, THREE.HTM into 
one.html, two.html, three.html you write:

rename 'y/A-Z/a-z/;s/\.htm$/.html/g' *.HTM

to just transform all names from uppercase to lowercase you can use

rename 'y/A-Z/a-z/' *

I hope it helps.

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

iD8DBQE5bzn6v9iOG/S6owkRAntBAJ9IAuXP/DQRvfzHtq6t3QSdLoMw7wCglx6L
VvUTcQhuqk8gfwIGdNM8qiw=
=jziQ
-----END PGP SIGNATURE-----



Reply to: