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