Upper case to Lower case the Shell way

#!/bin/sh for f in `cat /tmp/file_with_text` do g=`expr “xxx$f” : ‘xxx\(.*\)’ | tr ‘[A-Z]’ ‘[a-z]’` echo $g done