Fix Windows Returns in bash Scripts Sep 30, 2014 tr -d "\r" < script.sh > tmp.sh tr -d "\r" < tmp.sh > script.sh rm tmp.sh