> How do I get rid of Control-M at the end of each line in a dos > text file imported to Debian? Haven't seen this posted yet: tr -d "\r" < infile > outfile It will delete CTRL-M throughout the file though, not just the end of each line. Scott