OK. Strike my previous, which I thought was a bit strange. Here's how it's done: sed -e 's/^M//g;' < inputfile > outputfile (where ^M = Ctrl V Ctrl M) Don't know about you Trevor, but I'll stick with perl...... :-) Steve