ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant fixcrlf
Date Fri, 04 Nov 2011 10:12:52 GMT
On 2011-11-04, prbharsakle wrote:

> Hi All,

> I have defined some logic in my a.csh file.

> e.g. : foreach sqlfile (`cat $sql_File | awk '{print $2}' | sed -e
> 's/\\/\//g' | tr -d ^M `)

> After that I am copying this file to some other location, before that I am
> running fixcrlf on this a.csh file, it does removing the ^M characters from
> end of the line but it is also removing the ^M characters which I have
> defined in my foreach statement.

You mean there is a literal carriage return in your foreach loop and not
the two letters ^ and M?

tr should accept \r (the two letters \ and r).

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message