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://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
X-Injected-Via-Gmane: | http://gmane.org/ |
To: | cygwin AT cygwin DOT com |
From: | Andrew DeFaria <Andrew AT DeFaria DOT com> |
Subject: | Re: bash- Removing Line feeds (Carriage returns) from data |
Date: | Thu, 23 Oct 2003 09:10:05 -0700 |
Lines: | 71 |
Message-ID: | <bn8uh9$ihl$1@sea.gmane.org> |
References: | <4FF77D01E13B214590F4FA3E2C3021D0873AC2 AT pecos DOT csw DOT alewife DOT net> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
X-Accept-Language: | en,ru |
In-Reply-To: | <4FF77D01E13B214590F4FA3E2C3021D0873AC2@pecos.csw.alewife.net> |
Jared Ingersoll wrote: >I think tr is going to solve it, but now I have to figure out just what >character this is. > Is it not character return?!? > >thanks, > >jared >-----Original Message----- >From: Joe [mailto:jdenicola AT maxwellsystems DOT com] >Sent: Thursday, October 23, 2003 11:18 AM >To: cygwin AT cygwin DOT com >Subject: Re: bash- Removing Line feeds (Carriage returns) from data > > >Try piping to: tr -d '\r' > > >"Jared Ingersoll" <jared AT cswv DOT com> wrote in message >news:4FF77D01E13B214590F4FA3E2C3021D0873AB9 AT pecos DOT csw DOT alewife DOT net... > > >>Hello, >> >>I'm currently using cygwin (updated yesterday) with a WIN2K resource kit >>utility to dump logs from event viewer into a comma delimited file. One >>behavior that I have noticed (and occasionally notice with cygwin in >>general) is that within the data, there are what I believe to be carriage >>returns (show up in an excel spreadsheet as a square character). This data >>will eventually end up in an Oracle database, so these characters are >>undesirable. I was wondering if there is a way (outside of manually >> >> >editing > > >>the file, perhaps with sed or awk) to remove these characters? >> >>Here's the command that's producing them in the bash shell: >> >>/cygdrive/d/EventAudit/dumpel.exe -d 1 -s MyPC -l system -t -c | >>/cygdrive/c/cygwin/bin/awk '{print "MyPC" "," "system" "," $0}' >> >>/cygdrive/d/EventAudit/serverevents.`/cygdrive/c/cygwin/bin/date +%Y%m%d` >> >>I was unable to find any reference to an automated resolution on google or >>cygwin FAQ. >> >>Thanks for the help. >> >>Jared >> >> >> > > > > >-- >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/ > >-- >Budget: A method for going broke methodically. > > -- 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 |