If you want to make every file lowercase:
shell> for i in *; do mv $i `echo $i | tr '[A-Z]' '[a-z]'`; done
For the other way around (every file uppercase):
shell> for i in *; do mv $i `echo $i | tr '[a-z]' '[A-Z]'`; done
You'll get some gripes if files are already uppercase or
lowercase, depending on which you do, but it won't hurt anything. You
could do it more elegantly, but this is quick. :) Other than these two
ops, you'd have to do something more specific...
-----------------------------------------------------------
Matt Housh email: [EMAIL PROTECTED]
MicroComputer Specialist University of Tulsa
Engineering and Natural Sciences
"Pardon me, stewardess. I speak Jive."
On 22 May 1998, Simon Liddington wrote:
>
> Can anyone think of an easy way of changing the case of the names of a
> directory tree of files?
>
> Simon
>
> --
> ------------------------------------------------------------------------
> | Simon Liddington | Tel (home) : +44 (0)1703 346087 |
> | E-Mail : [EMAIL PROTECTED] | Tel (work) : +44 (0)1703 592422 |
> ------------------------------------------------------------------------
>
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
> To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject.
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.