script code for end-line

Anton Yuzhaninov citrin+bsd at
Sat Sep 9 01:48:49 UTC 2017

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:

What you need to do with this file?

More information about the freebsd-questions mailing list