Site icon Crackjet

Null characters in file

Some program could not handle interfacing files which contains null characters and has often causes support people lots of run around to find the cause.

A simple way to identify the locations of null characters in a flat file is by using the following command. Works well each time for me. 🙂

 

tr '\0' '@' < INPUT_FILE > OUTPUT_FILE

 

I LOVE UNIX!

Exit mobile version