GNU coreutils version of 'tr' supports the following syntax:
To lower:
$ echo ABC | tr '[:upper:]' '[:lower:]' abc
To upper:
$ echo abc | tr '[:upper:]' '[:lower:]' ABC
I think is the easiest way.