I have a set of big (>1Gb) binary files which was uploaded to FTP with incorrect line-ending. They contain "0D 0A" where should be "0D". Is there a way in Linux to replace all includings of bytes "0D 0A" to "0D" in command line?
@J.F.Sebastian There is a difference between removing bytes and replacing, I would like to replace, not delete. And it is impossible to install non-standard utilities. Only sed, bash, tr is available...
I don't understand your comment e.g., in what way sed $'s/\r$//' fails for you? There could be invalid for your use-case answers but the question is 100% related.
@J.F.Sebastian Yes, I wrote about I need for \r, but actually I am looking for relatively universal solution for replacement bytes. I've tried everything already and didn't get any positive result. But thanks, your comment would be best answer.
sed $'s/\r$//'fails for you? There could be invalid for your use-case answers but the question is 100% related.\r\nwith\n, you want replace\r\nwith\r. Is it correct?