Trimming new line in bash Posted on 2013-09-27 [Friday] by Jay Jay To trim new lines in bash: tr -d '\r\n'