echo 'hello world'|tr a-z A-Z

echo 'HELLO WORLD'|tr A-Z a-z

echo 'HELLO WORLD'|tr [:upper:] [:lower:]

echo 'hello world'|tr [:lower:] [:upper:]
tr - translate or delete characters