Null characters in file

Problem Solved

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!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.