tr
Updated: September 28, 2024
Translate Characters. For instance changing characters from upper to lower case.
Translate Characters
-s # squish repeating letters, ie aaaabbbb will become ab
echo "this is my test" | tr a-z A-Z
echo "this is my Test" | tr [:upper:] A
echo "this is my ttest" | tr -s t