"Daniel Andersson" writes: >may i ask how you found the \r? The symptoms indicated that there may be one, so a simple grep found it: egrep -n '^M' testfile.txt Tet -- Gllug mailing list - Gllug at linux.co.uk http://list.ftech.net/mailman/listinfo/gllug