[buug] lowercase coversion of filenames

Aaron T Porter atporter at primate.net
Wed Aug 28 10:59:21 PDT 2002


On Wed, Aug 28, 2002 at 10:36:31AM -0700, Michael Stead wrote:

>  I do GIS 'cause it is so much fun, as is UNIX and all this good stuff.
>  Anyways I recently ran an AML script that has always worked before and
>  came up with problems. I am trying to loop through a directory and run
>  a translation process on each file. Unfortunately someone named all
>  these files with some capital letters embedded in the filenames. Does
>  anyone know what the UNIX commmand or procedure would be to remedy
>  this? Something like 'tr', but for filenames?

	What's wrong with tr? And how about not posting in HTML next time?

for file in * ; do mv $file `echo $file | tr [:upper:] [:lower:]` ; done



More information about the buug mailing list