linux remove null bytes from file code example Example: linux remove null bytes from file sed 's/\x0/ /g' file1 > file2