Hi
I don't know if this helps but I have always converted DOS files that have the pesky ^M character using the following:
sed 's/^M//' olddosfile > newfilename
(Note: ^M = CTRL V, then M. Dont let go of CTRL)
This seems to me a lot easier than above, but maybe there is something that the script would do that the above sed script wouldn't do? I'd like to know if that is the case
On another note, Beppe83, did you fix your "sort" problem that you posted elsewhere?
CK