Hi,
I have this file which has some octal NULL characters (\000). I need to replace these characters with an ASCII NULL.
I've tried using Perl, the UNIX tr command..
History of this
I received a COBOL generated file, ran the od command to convert to a xxx byte per record file.
Now, some of the records that have octal NULLS wont convert and it merges the next line to this record with the current line. I found this at
http://www.canberra.edu.au/~sam/whp/sed-tricks.html
Type in a text file named "f127.TR" with the line starting tr above. Print the file on screen with cat f127.TR command, replace "filein" and "fileout" with your file names, not same the file, then copy and paste the line and run (execute) it. Please, remember this does not solve Unix end-of-file problem, that is the character '\000', also known as a 'null', in the file. Nor does it handle binary file problem, that is a file starting with two zeroes '\060' and '\060' http://www.canberra.edu.au/~sam/whp/sed-tricks.html
Any idea how I could do this in UNIX without using C or a different programming language.
Thanks,
U