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