I am looking for a quick way to parse through a file and extract anything matching a particular pattern.
I have an image file (RAW dd) and I want to go through it and pull out all Unicode escape sequences (\u0000, \uFFFF, etc) and output them to a file. I have already written a program that will take a file containing escape sequences and generate the actual text but I first need to get them out of the image.
I considered using awk but to the best of my knowledge it requires some sort of structure (line or comma delimited). Any ideas/suggestions?