Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-Id: <199909290743.DAA05008@dagda.sunflower.com>
From: "Doug Wyatt" <dwyatt@sunflower.com>
To: cygwin@sourceware.cygnus.com
Date: Wed, 29 Sep 1999 02:42:44 -0500
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Re: Making Cygwin write DOS style text files
Reply-to: dwyatt@sunflower.com
CC: "Rabbe Fogelholm" <Rabbe.Fogelholm@ellemtel.se>
In-reply-to: <2294531132.938597401@vox.pcs.ellemtel.net>
X-mailer: Pegasus Mail for Win32 (v3.11)

Date sent:      	Wed, 29 Sep 1999 09:30:01 +0200
From:           	Rabbe Fogelholm <Rabbe.Fogelholm@ellemtel.se>
To:             	cygwin@sourceware.cygnus.com
Subject:        	Making Cygwin write DOS style text files

Hi,
Are you running this in a "text=binary" mount?
Try it in a "text!=binary" mount.

Doug

> Hi all,
> 
> I am new to the list; hope this is not a FAQ ( I have read the "How is
> the DOS/Unix CR/LF thing handled?" FAQ entry).
> 
> My problem: I want to manipulate a text file under Win32, using Cygwin
> Tools (grep, sed etc). The resulting file has Unix-style line ends
> (single LF) and looks unreadable when opened with Notepad.
> 
> My best solution thus far: Filter the text through gawk
> '{printf("%s\015\n",$0);}' .
> 
> This works, but is there a neater solution?
> 
> --Rabbe Fogelholm, Ellemtel, Stockholm, Sweden
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 



==========================================================
Doug Wyatt                    E-Mail: dwyatt@sunflower.com
Sys Admin                      Phone: 785-843-4099
Kohlman Systems Research, Inc.   Fax: 785-843-6459
319 Perry St., Lawrence, KS  66044  USA

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

