Lower case a string in bash

How do I lower case a string in bash?

/bin/mv $file $(echo $file | tr '[A-Z]' '[a-z]'])

Where $file is the file name we want lower cased.

No related posts.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>