Ralph Shumaker wrote:
I want to do this:
cat myFile | sed -e "s/[ ]*CTRL-M/\n/g" > myFileCleaned
where Ctrl-M is character 0x013 and \n is a newline.

Is this a dos file? Are the ^M's at the end of the line? There's a utility that is probably already on your machine called dos2unix.

Mark


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to