[Techtalk] lower to upper case

Kathryn Hogg kjh at flyballdogs.com
Tue Oct 9 12:28:49 UTC 2007

> On 10/9/07, Miriam English <mim at miriam-english.org> wrote:
>> for file in *
>> do
>>         mv $file `echo $file | tr '[a-z]' 'A-Z'`
>> done
>> In my text editor I'd simply replace each filename with \U& but that
>> isn't possible directly in bash.
>> Is there an even simpler way?

Not necessarily simpler but you should use tr '[:upper:]' '[:lower:]'


More information about the Techtalk mailing list