How to remove a special char using sed

consider this is my sample file format.
in this i want to remove ^@ with space .
please help me in this problm

7305,1310184890,0,0,12,201370,FCASTBHBR0   ,XX ,2,1,2,0,^@,1,1,0,3,1303862400,0,1577923199,1,10,FCASTOR SEED EX-BHABHAR  ,0,0,0,1303862400,1577923199,0,1,0,0,0,0,0,0,0,1310184890,N,FCASTOR SEED EX-BHABHAR                 ,1,1303862400,1577923199,OILSEEDS

Thanks in advance.:slight_smile:

try

sed 's/\^@/ /g' file

The "^@" you see (in vi?) may be just the null byte. In that case you can do

tr '\0' ' ' < file

You may need the xpg's version of tr if you are on solaris.