On 09/08/17 20:15, Ernie Luzar wrote: > I have a file that has blank lines with ^M in position one. > > I have this if [ "$end-line" = "^M"]; then > > > Is that the correct way to code that between the quotes? The question looks like an XY-problem: http://xyproblem.info/ What you need to do with this file?