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

Re: [Sheflug] Renaming files



I can't remember the name, but there is a program that renames a file to
lowercase letters. If you can find out what it's called, then <prog> * will
do the whole lot...
--
Graham

----- Original Message -----
From: "Matthew Palmer" <xxxxx [at] ieee.uow.edu.au>
To: <shef-lug [at] list.sheflug.org.uk>
Sent: Sunday, August 18, 2002 6:08 AM
Subject: Re: [Sheflug] Renaming files


> On Sat, 17 Aug 2002, Richard Davies wrote:
>
> > is there an easy way to change all file names in a directory tree from
> > lowercase to uppercase.
> >
> > There are 5300 files in 64 directories.
> > Typical file name being 576b54.gif and this needs to be changed to
576B54.GIF
>
> for i in *; do mv $i `echo $i | tr '[:lower:]' '[:upper:]'`; done
>
> Will do the trick, I think.
>
>
> --
> -----------------------------------------------------------------------
> #include <disclaimer.h>
> Matthew Palmer, Geek In Residence
> http://ieee.uow.edu.au/~mjp16
>
> ___________________________________________________________________
>
> Sheffield Linux User's Group -
> http://www.sheflug.co.uk/mailfaq.html
>
>   GNU the choice of a complete generation.

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.