in reply to Removing \cJ and \cI

\cJ is a linefeed - also known as \n.
\cI is a tab - also known as \t.
You shouldn't have to remove the \cJ characters; those are newlines. You could use tr/// to change each tab to a space: tr/\t/ /;