I receive a file which is Dos format. When I view the file using vi, I was able to find ^M, ^@ characters in beteen records. I wanted to remove these control/special characters. I used the
dos2unix
command. This removed the ^M characters. But I am unable to remove the ^@ character. I tried even the
sed 's/^@//g'
but no use. Please help me on removing the ^@ character.
I've assumed that you were viewing the file with "cat -v" and seeing each null character as ^@ . sdebasis is assuming two ascii characters ^ and @ .
Please clarify what is in the file: