Always nasty, them windows newlines

I always use a simple bash script to take care of this problem. It's not pretty, but it works for me.

usage:
ctrlm.sh oldfile.txt >newfile.txt

#!/bin/bash #ctrlm.sh cat $1 | tr -d "\015"

Teabag
Sure there's more than one way, but one just needs one anyway - Teabag


In reply to Re: Removing Windows newlines by teabag
in thread Removing Windows newlines by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":