From owner-freebsd-questions@freebsd.org Sat Sep 9 00:15:35 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C420FE13CE6 for ; Sat, 9 Sep 2017 00:15:35 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8B49270B7D for ; Sat, 9 Sep 2017 00:15:35 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x235.google.com with SMTP id n69so7613472ioi.5 for ; Fri, 08 Sep 2017 17:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject :content-transfer-encoding; bh=9JWSSjAaYqKZkmA1Himh/kzlzABoKZIXtubR0QHOJEY=; b=bW7AgeyILj38A7p5jHLmneNvBb9Ou9UPd6PbcKALuXJWCoR5psgvo80h23jiTPiQPX xXTSSexdngn5sNLmO2wiHeFsXzcIkBzHK0A9fxVCpgg88QH3NN4N3Ih5JNDq38Dnk/Nu YsJ7RGSO38HiemWkZyRe9488uXCuiHy+y7lQBBzVA+gqlW6YvUkNj0a4l9ENfSrX+bRs gxJCd1JFSukkTeATLgZcZV+hz7HeemBtKwidhbrssB+2IwShb+EPhuBM99/qUb6COWdr ogTYJyjmy8TPhtNoR+0eW3sYZYKvCM3CZ9XCyTsanbToU9RNgzJpzlsfu5H/CEPqZvpr eEdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-transfer-encoding; bh=9JWSSjAaYqKZkmA1Himh/kzlzABoKZIXtubR0QHOJEY=; b=jnM+V/PMAA/Rz4rhwORi7crw1JHgZi+JjD5ECDo/bOsJ6V1DtibM1Y+j1vJN73h6Bd q14jVix3Mi+xH4RNNiaBYsNp/Co8RYMdb3DK1n0t+OyOI3s8gvfPx8kscGtK/BR1UtZF 38oYntnU3FH6jbKzGZ7lDNBE7IhnXVHQRsymzP6O7CPglW/XTeinFRzKx3MxEneq3Loa 175A8JLju4YlsByi6bh6BH1KR/T/j60aM3lN7o25JaaMUzMv0b59QqheQ/oG34G2IY7n o6/Gvd0EnEKeQbJa4dE3uSQ9I/YFcSBvyT9PZfWajrFdqrrb7sl4e0GIRf2Z6p0BCUpr sb9g== X-Gm-Message-State: AHPjjUgqpju1p82ghYRjPGknFB3uSlYAs/UVwWxo9mhncP/A9kvlS8dC HiXVEIbm60PkYVfY X-Google-Smtp-Source: AOwi7QCXxhGiWzZ/J+sdY6VG3R8kdb7aUQu5h1CPr8DfWuGeCIwYhx73p4Hj6rhBj+g6ajJZMG1s6Q== X-Received: by 10.107.148.209 with SMTP id w200mr5832335iod.83.1504916134645; Fri, 08 Sep 2017 17:15:34 -0700 (PDT) Received: from [10.0.10.3] (cpe-74-141-88-147.neo.res.rr.com. [74.141.88.147]) by smtp.googlemail.com with ESMTPSA id e78sm1604793itc.44.2017.09.08.17.15.34 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Sep 2017 17:15:34 -0700 (PDT) Message-ID: <59B332A3.1000205@gmail.com> Date: Fri, 08 Sep 2017 20:15:31 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Subject: script code for end-line Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Sep 2017 00:15:35 -0000 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?