X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Shell script - is this expected behaviour? Date: Wed, 30 Nov 2011 10:55:12 -0600 Message-ID: <2BF01EB27B56CC478AD6E5A0A28931F203A4A513@A1DAL1SWPES19MB.ams.acs-inc.net> In-Reply-To: References: From: "Nellis, Kenneth" To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pAUGtawC013477 From: Tim McDaniel Subject: RE: Shell script - is this expected behaviour? >I don't have the time to experiment at the moment, but I'm pretty sure >that some of the standard tools append a line terminator if it's not >already on the last line of their input. sed or awk or gawk, maybe? >Anyway, if you can stumble on such a program, it can save you having >to write and maintain and distribute a filter to all your >environments. FWIW, "grep ^" seems to do the trick. --Ken Nellis -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple