| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Date: | Wed, 29 Sep 1999 09:30:01 +0200 |
| From: | Rabbe Fogelholm <Rabbe DOT Fogelholm AT ellemtel DOT se> |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| Subject: | Making Cygwin write DOS style text files |
| Message-ID: | <2294531132.938597401@vox.pcs.ellemtel.net> |
| Originator-Info: | login-id=eubrafo; server=mail.pcs.ellemtel.net |
| X-Mailer: | Mulberry (Win32) [1.4.4, s/n U-300918] |
| MIME-Version: | 1.0 |
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 AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |