If I add the -A option
uname -p | tr -A "[A-Z]" "[a-z]" | tr -d ' '
powerpc
with lang=US it would work ootb
from man:
-A
Performs all operations on a byte-by-byte basis using the ASCII collation order for ranges and character classes, instead of the collation order for the current locale.
however that option is only available on aix, not linux for instance.
bash-4.3$ uname -p powerpc bash-4.3$ uname -p | tr "[A-Z]" "[a-z]"
This is due to the locale being: LANG=no_NO
If I add the -A option uname -p | tr -A "[A-Z]" "[a-z]" | tr -d ' ' powerpc
with lang=US it would work ootb
from man: -A Performs all operations on a byte-by-byte basis using the ASCII collation order for ranges and character classes, instead of the collation order for the current locale.
however that option is only available on aix, not linux for instance.