tr "abc" "xyz"
echo alphabet | tr "abc" "xyz"
tr [a-z] [A-Z] < input.txt > output.txt
或者
tr '[:lower:]' '[:upper:]' < input.txt > output.txt