-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Just curious: what happens if there are collisions? i.e., if the lower cased name already exists? On Sun, 13 Jun 2004, Joseph C. Lininger wrote: > > Ya I tried that, and it works fine unless the directory name has a space in > it. I can even make it work for file names if not for that. > --- > Joseph C. Lininger > jbahm at pcdesk.net > note, the following is used for automated processing. Please leave in tact > if quoting me in a reply. > Verification: 5eab38a77ac40416e075be8f50607ff7 > ----- Original Message ----- > From: "Luke Yelavich" <themuso at themuso.com> > To: "Speakup is a screen review system for Linux." <speakup at braille.uwo.ca> > Cc: "Speakup List" <speakup at braille.uwo.ca> > Sent: Sunday, June 13, 2004 7:17 PM > Subject: Re: lowercasing file names > > > > At 10:54 AM 14/06/2004, Joseph C. Lininger wrote: > >>Hi all, > >>I've got a directory structure which contains some uppercase characters in > >>the file names. I would like to lowercase every character in the name. > >>Does anyone know of a quick and easy way to do this? I could write a > >>little program to walk through the directory structure and take care of > >>it, but I'd rather not go to the trouble if there is already something out > >>there that can do it. > > > > I had a few bash scripts written for this purpose, but have since either > > lost them or deleted them. > > > > I guess you could try something like the following, this is for > > directories only. > > > > # for dir in `find ./ -type d`; do mv "$dir" `echo "$dir" | tr '[A-Z]' > > '[a-z]'`; done > > > > hth > > > > Luke > > > > > > _______________________________________________ > > Speakup mailing list > > Speakup at braille.uwo.ca > > http://speech.braille.uwo.ca/mailman/listinfo/speakup > > > > > _______________________________________________ > Speakup mailing list > Speakup at braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup > ------------ Output from gpg ------------ > gpg: Signature made Sun Jun 13 23:33:10 2004 EDT using DSA key ID 49AA3DB0 > gpg: BAD signature from "Joseph C. Lininger <jbahm at pcdesk.net>" > > - -- The Moon is Waning Crescent (10% of Full) My home page is now at http://www.mhcable.com/~chuckh -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iQCVAwUBQM130TVdG8M9x9tGAQKjdgQAtDUrkgXphTqU5A18uJ0WLKDHrzFZ6CLh foTG5vgdWodE/ZtvHTBr6Bg5M//Rtdqk+hALKT9sM1siJv4fKCLV9vjZZgMJWaM2 prK2504q9pMQpqrKADRkyPYrumlcEb3S8zohsShx/5ylgjhBPETCEUjx6jNrqLg2 96qv9pRDl8I= =5pPn -----END PGP SIGNATURE-----