Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 4934 invoked from network); 13 Jan 2005 02:47:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Jan 2005 02:47:12 -0000 Received: (qmail 62045 invoked by uid 500); 13 Jan 2005 02:47:06 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 61996 invoked by uid 500); 13 Jan 2005 02:47:06 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 61981 invoked by uid 99); 13 Jan 2005 02:47:06 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of juliusdavies@cucbc.com designates 64.114.5.49 as permitted sender) Received: from c2ksmtpg.cucbc.com (HELO c2ksmtpg.cucbc.com) (64.114.5.49) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 12 Jan 2005 18:47:05 -0800 Received: from c2kmail1.cucbc.com ([172.17.68.166]) by c2ksmtpg.cucbc.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 12 Jan 2005 18:47:01 -0800 Received: c2kmail1.cucbc.com 172.17.68.166 from 172.18.0.5 172.18.0.5 via HTTP with MS-WebStorage 6.0.6249 Received: from haplo by c2kmail1.cucbc.com; 13 Jan 2005 03:49:28 +0000 Subject: Re: Cleaning a text file with tons of extra CRLF's From: Julius Davies Reply-To: juliusdavies@cucbc.com To: Ant Users List Cc: natgross.rentalsystems@verizon.net In-Reply-To: <41E5DC2E.2080807@verizon.net> References: <41E5C22D.906@verizon.net> <1105577593.13332.12.camel@localhost.localdomain> <41E5DC2E.2080807@verizon.net> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: CUCBC Date: Wed, 12 Jan 2005 19:49:28 -0800 Message-Id: <1105588168.3518.1.camel@haplo> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 X-OriginalArrivalTime: 13 Jan 2005 02:47:01.0250 (UTC) FILETIME=[2838E620:01C4F91A] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, Nat, I never would have thought of that! Really neat! Actually, " " is a CR, not 015. yours, Julius On Wed, 2005-01-12 at 21:25 -0500, Nat Gross wrote: > Thanks, but for whatever reason, I can't get replacetoken to work, > regardless if using CDATA or plain strings. > BUT, you pointed me in the right direction and the following *partially* > works: > value=" " summary="true"> > > However, it's only a partial solution, because it takes care of only > about half the white space, and heaven knows what the other white space > really is. Alas there is no valid  escape sequence. (That would > represent a CR). > > Also to Martin, alas, I'm not well versed in regex. > -nat > > > Julius Davies wrote: > > >Try this: > > > > > > > > >]]> > > >]]> > > > > > >Be careful to make sure the CDATA only contains the EOL's and no extra > >whitespace! > > > >BEFORE: > >======================= > >this file > > > >seems to be > > > >double spaced > > > >except for the > >very last line. > > > > > >AFTER: > >======================= > >this file > >seems to be > >double spaced > >except for the > >very last line. > > > > > >yours, > > > >Julius > > > >On Wed, 2005-12-01 at 19:34 -0500, Nat Gross wrote: > > > > > >>Hi; > >>On Windows, I get a daily text file from another process that has tons > >>of extra EOL's, which I manually delete with my editor. > >>How can I use Ant's filter to copy the file and strip all duplicate > >>eol's? The fixeol task does not cut it. It should have an option to > >>remove the eol, or replace every 2 consecutive eol's with 1. > >>If its a quick one for you, please advise. > >>Thank you. > >>-nat > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > >>For additional commands, e-mail: user-help@ant.apache.org > >> > >> > >> > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > >For additional commands, e-mail: user-help@ant.apache.org > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org