cat /your/file | sed -e 's/ff0aff/202020/g' -e 's/FF0AFF/202020/g' > /your/new_file
line 1 cat the file and pipe it to sed
line 2 execute sed command substitute string/ff0aff/ by /202020/ whith global substitutions along the line
line 3 same as line 2 if the hexa is in upper case
last line redirect the result to a new file
I think in the ytakbob's file there are the binary X'FF0AFF' sequence and not the literal values so the sed should be a little different.
They are hexadecimal values and you can specify only octal values FF0AFF will become \377\012\377 so probably it will become:
cat file|sed 's/\377\012\377/ /g' > new_file
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.