www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Matthew Woehlke <mwoehlke AT tibco DOT com> |
Subject: | Re: Bash 3.1.17(8): Scripts on textmode mount get problems with CR characters |
Date: | Fri, 27 Oct 2006 13:15:43 -0500 |
Lines: | 13 |
Message-ID: | <ehticf$6rm$1@sea.gmane.org> |
References: | <CA77FC40E7A2D24695CF3C790BB731858DDF28 AT DOVMS10001 DOT goss DOT gossinternational DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 |
In-Reply-To: | <CA77FC40E7A2D24695CF3C790BB731858DDF28@DOVMS10001.goss.gossinternational.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Long, Phillip GOSS wrote: > U don't have d2u on all platforms, but U probably _do_ have awk or > gawk on every platform. I came up with a simple fix for the CRLF > problem when I encountered it, which is still klugy, but works on > every POSIX or Cygwin platform: > gawk '//' fileFromTextMount > fileWithLFOnlyOnBinMount ...or: $ cat <file> | tr -d '\r' -- Matthew "Two IIRC's must make a right" -- Larry Hall (paraphrased) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |