I have a file that has ascii and binary data (its actually a postscript file). I need to translate some of the string values at the beginning of the job.
I thought it would be easy
sed -e 's/123456/789012/' < input > output
The translation works correctly but the file is a different size.
I believe this is because of the binary data and inclusion of nulls.
If i try to edit the file in vi, it says line too long.
The file will edit successfully with dtpad.
Is there a version of sed that will handle the binary data and nulls or is there some other utility