These characters appear in vi or other editors like this:
^@^@^@^@^@^@^@^@^@^@^@
Ugh.
You can use your old friend sed(1) to get rid of them, but you have to match the pattern of the NULL character. And how do you pass that to sed?
sed -e 's/\o00//g' infile > outfile
That pattern says match octal number 00 and replace it with nothing.

0 comments:
Post a Comment