#Remove those pesky ^M (note the ^V will not be visible) perl -pi -e 's/^V^M//g'