1

Different behavour with "tr"

view story
linux-howto

http://www.unix.com – I am getting different output with the 'tr' command in bash I am using Linux: Red Hat Enterprise Linux Server release 5.3 (Tikanga) Bash version: GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu) Code: $ x=`echo XXx | tr '[a-z]' '[A-Z]' ` $ echo $x XXX $ y=`echo XXx | tr [:lower:] [:upper:] ` $ echo $y XXx (HowTos)