delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Reply-To: | Cygwin List <cygwin AT cygwin DOT com> |
Message-Id: | <6.2.0.14.0.20041230195707.04c74a50@pop.prospeed.net> |
Date: | Thu, 30 Dec 2004 19:58:56 -0500 |
To: | <paul DOT batt AT baublatt DOT ch>, <cygwin AT cygwin DOT com> |
From: | Larry Hall <lh-no-personal-replies-please AT cygwin DOT com> |
Subject: | Re: What does a Script do to Windows text files? |
In-Reply-To: | <EXSMTP01DreBBsQwY6Y000001fe@mail.messaging.ch> |
References: | <EXSMTP01DreBBsQwY6Y000001fe AT mail DOT messaging DOT ch> |
Mime-Version: | 1.0 |
At 07:02 PM 12/30/2004, you wrote: >Does a cygwin bash script (or awk) alter text files? I use a little script >someone gave me in cygwin to add a line to a number of Windows text files: > >for F in *.txt >do > awk '{if (NR==7) {print "Datei: " FILENAME}; > print}' "$F" > tmp.txt > mv tmp.txt "$F" >done > >It works, but it does *something* else to my text files. It seems to alter >all the linefeeds or all the blank lines. This causes problems when I want >to import those text files into Asksam later on. The files *look* the same, >however. If you need files as Windows "text" files, pipe the result through 'u2d'. If that doesn't work, read and follow <http://cygwin.com/problems.html>. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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 |