[Techtalk] lower to upper case

Marize Pommot-Maia marize at gmail.com
Tue Oct 9 12:53:40 UTC 2007


On 10/9/07, Kathryn Hogg <kjh at flyballdogs.com> wrote:
>
>
> > 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:]'
>
> --
> Kathryn
> http://womensfooty.com
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
>

How about just using 'rename'?  As in:
  rename .JPG .jpg *.JPG

-- 
Marize Pommot-Maia
marize at gmail.com


More information about the Techtalk mailing list