[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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.