I receive some files from a mainframe application which contain NULL characters (ASCII zero). I want to be able to convert these to spaces but am having difficulty finding anything that can do it. I tried:
tr '\00' ' '
but that just seemed to remove the null character altogether. The application I'm using to load the file then fell over because all the characters had been shifted one position to the left. I also tried to write an awk script to do the same thing, but didn't have any success with that either.
tr '\00' ' '
but that just seemed to remove the null character altogether. The application I'm using to load the file then fell over because all the characters had been shifted one position to the left. I also tried to write an awk script to do the same thing, but didn't have any success with that either.