tr - translate or delete characters
tr [-d] [-s] SET1 [SET2]
Options you will use
-d- Delete characters in SET1.
-s- Squeeze repeats of characters in SET1 into one.
Examples
$ tr -s ' 'collapse runs of spaces
$ tr 'A-Z' 'a-z'lowercase
Taught in
Try tr in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.