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

ToggleCaSe



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


Hi,

Just wrote a script to toggle filenames (Upper to lower or
vice-versa). Had to write it to handle digital images -
they get stored as DSCF####.JPG in my Mac while my
photogallery scripts need lowercase filenames.


#! /bin/bash

for file in `ls DSCF*.JPG`;
do
  lfile=$(echo $file | tr [A-Z] [a-z])
  echo "  Converting ${file} to ${lfile} "
  mv ${file} ${lfile}
done


The script is also available from my website:

  http://sgowtham.net/scripts.html

If you knew about this (i.e., conversion process) already,
feel free to ignore this mail.

cheers,
g


S Gowtham
Grad Student
Dept of Physics
Michigan Tech Univ
Houghton MI 49931-1295
http://phy.mtu.edu/~sgowtham

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFEa9oprVepoaB77DkRAtBIAKCNoyoGGBkiUpJwEteK+/CCWjEt9QCaAoFR
lEBMc/emMxBGUoriRVwzjQY=
=WxJ1
-----END PGP SIGNATURE-----