Thanks for the reply.
Your solution works about twice as fast as a perl on-liner someone gave me, but I lost 21 bits along the way somewhere. The size of my source file and perl solution result file were the same, but 21 bits less using the tr command above. It's a 38 meg file, so it's not...
I need to substitute all hex C7 values in a file with a pipe. I tried substituting with sed, and it doesn't seem to recognize it:
sed 's/\0xC7/|/g' test.dat
sed 's/\xC7/|/g' test.dat
and many other variations.
Any one know how I can do 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.