🔧 A small but important detail when working with tr in Bash: When converting lowercase to uppercase using tr 'a-z' 'A-Z', always quote your ranges. Why? Without quotes, single-letter ranges like a-z can be interpreted as potential filename globs — and that's a subtle bug waiting to happen. One line. One pair of quotes. One less headache. tr 'a-z' 'A-Z' The best practices aren't always the big architectural decisions — sometimes they live in the small details of a shell script. #Bash #Linux #DevOps
IIRC the macros :upper: and :lower: support more character sets, but not multibyte.
Yes, but it doesn't work for me... Try by yourself: echo 'hellо wоrld' | tr 'a-z' 'A-Z'