[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Renaming files
On Sunday 18 August 2002 06:08, you wrote:
Thank you that worked just fine. All problems sorted now.
> > 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.
--
Regards
Richard
---------------------------------------------
There is hardly anything that some man cannot make a little worse and sell a
little cheaper. Ruskin
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.