[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting rid of Control-M in a file?







> 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





Reply to: