I have a badly corrupted Sqlite file The usual trick of dumping everything into a sql file and loading it into a fresh file doesn't work, but with a hex editor I can see that the data I need to restore is there
I came across this mode
Can vim display ASCII characters only, and treat other bytes as binary data?
for vi to display non printable characters as hex
Which is great, and will shows me
‹14›‹07› Mr Testy McTesterson [email protected]
but is there anyway to write that to file as it is displayed?
So take the hex value that vi displays as ‹14› in it's buffer and actually changed it to be those characters in a text file
I can do a regex search replace in vi to do it, but then I have to do it for each non printable character one at a time, and it's a pretty large file
Later, I plan to process ‹14›‹07› into the 16 bit integer it should represent, but first I need to be able to get those as real characters into a text file
Many thanks in advance