[plug] Does anyone know where i can get source for dos2unix?

Leon Brooks leon at brooks.smileys.net
Mon May 31 22:46:21 WST 1999


Christian wrote:
> Note that with this extra functionality it's about the same length as
> the original C program. :)

I can shorten it considerably:

tr -d '\r' <infile >outfile

Recursive version:
for file in $(find .); do tr -d '\r' <$file >/tmp/trimmed; mv -f
/tmp/trimmed $file; done


More information about the plug mailing list