tr# Translate / squeeze / delete characters. $ echo HELLO | tr A-Z a-z $ tr -d '\r' < dos.txt > unix.txt $ tr -s ' ' < file