Date: Fri, 8 Sep 2017 21:48:41 -0400 From: Anton Yuzhaninov <citrin+bsd@citrin.ru> To: freebsd-questions@freebsd.org Subject: Re: script code for end-line Message-ID: <88411fe0-888c-6d64-3830-a8cf5427e44b@citrin.ru> In-Reply-To: <59B332A3.1000205@gmail.com> References: <59B332A3.1000205@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?88411fe0-888c-6d64-3830-a8cf5427e44b>