So I recovered a text file from an old hdd, but I failed to completely recover all of the data. The data that wasn't correctly recovered has returned as null bytes. How can I remove every line from the file that contains these bytes?
Example of corrupt data
xE3 xAF xE2 xBF NUL xBD
and a ton more...
I know NULL is equal to \x00.
How can I remove every line containing corrupt data with sed rather than removing the bytes individually?
There are so many variations of bytes/corrupt data that I doubt I would be able to discover all of them with regex..