remove "\0" charecters

Hi
We have a sed command line to remove �\0� characters from specific file. This command redirects the output to a new different file. Is there a way to open the same file, remove special characters and close it, this avoids creating a new intermediate file for redirection.
Command:
sed 's/\x0//g' /file/SW.dly > /file/SW_N.dly

Regards, BK

If you have gnu sed, then you can use:

sed -i 's/\x0//g' file

If you have perl, then you can use:

perl -pi -e 's/\x0//g' file