ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stephan beal <step...@wanderinghorse.net>
Subject Re: problem with ctrl + M characters
Date Fri, 05 Apr 2002 10:31:04 GMT
On Friday 05 April 2002 07:07 am, Rosmon_Sidhik@i2.com wrote:
> The number of files is really large and so i cannot possibly save each
> file to
> unix format as it would take a lotta my time and it wouldn't be feasible.

There are probably easier ways to do this but here's one simple way:

for i in $(find . -type f -name "*.txt"); do
  echo Converting $i from Windows to Unix line-ending format...
  recode ibmpc..lat1 $i
done


----- stephan
Generic Unix Computer Guy
stephan@einsurance.de - http://www.einsurance.de
Office: +49 (89)  552 92 862 Handy:  +49 (179) 211 97 67
"Wenn ich weniger Bock haette, wuerde ich nicht Atmen."

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


Mime
View raw message