Try this - you don't need cat :-
sed 's/'"$(printf '\013')"'$// s/'"$(printf '\022')"'$//' filein > fileout
Assumes 013 is ^M and 022 is ^V ( I haven't checked this )
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.