Some records in my database have got corrupted - when I extract the data to a text file I discover that some records have the null character (\0) in them. My question is how can I easily determine which records have the null char. What I've done so far is:
od -c <datafile>
This works but it's not easy to identify the record. Is there a way to use grep, sed, or anything else to identify these corrupted records? Everything I try seems to either treat every line or none of them as including the char.
TIA, Chris
od -c <datafile>
This works but it's not easy to identify the record. Is there a way to use grep, sed, or anything else to identify these corrupted records? Everything I try seems to either treat every line or none of them as including the char.
TIA, Chris