I have a cron job which runs a long script producing lots of output. Some of the output is lines delimited by single carriage returns; when run from the command line, these make the successive lines overwrite each other, providing progress output without overly polluting the backscroll. However, when looking at the output from the cron job, I want to see all these lines without missing any.
Until recently, when I used
mailx to print the output reports from the cronjob, it would replace the control characters with reverse-video
^M to highlight them. This was the behavior I wanted, as it left all of the lines visible. Now, however, something unknown has changed (a version upgrade?), and
mailx prints the control characters as-is, causing them to overwrite each other when mail is printed. How can I reverse this behavior and make
mailx replace control characters again?