Re: Cleaning a text file with tons of extra CRLF's

2005-01-20 Thread Nat Gross
Regards Ivan --- "Dick, Brian E." <[EMAIL PROTECTED]> wrote: If you use OS pipes, you will appreciate filterchains. -Original Message- From: Nat Gross [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 4:41 PM To: Ant Users List Subject: Re: Cleaning a text file wi

Re: Cleaning a text file with tons of extra CRLF's

2005-01-14 Thread Peter Reilly
: Ant Users List Subject: Re: Cleaning a text file with tons of extra CRLF's filterchains? I will need to catch up on that topic. Thanks for the tip. -nat __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

RE: Cleaning a text file with tons of extra CRLF's

2005-01-14 Thread Ivan Ivanov
> -Original Message- > From: Nat Gross > [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 13, 2005 4:41 PM > To: Ant Users List > Subject: Re: Cleaning a text file with tons of extra > CRLF's > > > filterchains? I will

RE: Cleaning a text file with tons of extra CRLF's

2005-01-13 Thread Dick, Brian E.
If you use OS pipes, you will appreciate filterchains. -Original Message- From: Nat Gross [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 4:41 PM To: Ant Users List Subject: Re: Cleaning a text file with tons of extra CRLF's filterchains? I will need to catch up on

Re: Cleaning a text file with tons of extra CRLF's

2005-01-13 Thread Nat Gross
filterchains? I will need to catch up on that topic. Thanks for the tip. -nat Matt Benson wrote: Also, have you tried using filterchains? You can use the ignoreblank filter to remove blank lines. And it might look a little prettier. -Matt --- Nat Gross <[EMAIL PROTECTED]> wrote: Ok. Releasing

Re: Cleaning a text file with tons of extra CRLF's

2005-01-13 Thread Matt Benson
Also, have you tried using filterchains? You can use the ignoreblank filter to remove blank lines. And it might look a little prettier. -Matt --- Nat Gross <[EMAIL PROTECTED]> wrote: > Ok. Releasing ver 1.0RC . (Using your reminder on > " ".) > Also capitalizing on the fact that its an xml tar

Re: Cleaning a text file with tons of extra CRLF's

2005-01-12 Thread Nat Gross
Ok. Releasing ver 1.0RC . (Using your reminder on " ".) Also capitalizing on the fact that its an xml target that needs the messaging, I can safely replace every single CRLF with null, "", nada. Then replace every "/>" with "/>LF". Its real simple and works, and achieves 99.9% of my goal. He

Re: Cleaning a text file with tons of extra CRLF's

2005-01-12 Thread Julius Davies
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 m

Re: Cleaning a text file with tons of extra CRLF's

2005-01-12 Thread Nat Gross
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: However, it's only a partial solution, because it takes care of only about half the white space, and h

Re: Cleaning a text file with tons of extra CRLF's

2005-01-12 Thread Julius Davies
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

Re: Cleaning a text file with tons of extra CRLF's

2005-01-12 Thread Martin Cooper
You might try the (optional) task. -- Martin Cooper On Wed, 12 Jan 2005, 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?

Cleaning a text file with tons of extra CRLF's

2005-01-12 Thread Nat Gross
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 ev