"tailing" a binary file based on string location using bash?
Posted
by ilitirit
on Stack Overflow
See other posts from Stack Overflow
or by ilitirit
Published on 2010-03-30T14:11:27Z
Indexed on
2010/03/30
14:13 UTC
Read the original article
Hit count: 379
I've got a bunch of binary files, each containing an embedded string near the end of the file but at different places (only occurs once in each file). I need to extract the part of the file starting at the location of the string till the end of the file and dump it into a new file.
eg. If the file's contents is "AWREDEDEDEXXXERESSDSDS" and the string of interest is "XXX", then the part of the file I need is "XXXERESSDSDS".
What's the easiest way to do this in bash?
© Stack Overflow or respective owner