1、windows 下编辑好的文件 asm_compile.txt,在 linux 下显示如下:
$ cat -v asm_compile.txt 1) ml.exe /c /coff /I d:masm32include reg_test.asm^M 2) link.exe /subsystem:windows /libpath:d:masm32lib reg_test.obj^M ^M
2、解决办法
$ tr -d ' ' < asm_compile.txt > new_compile.txt
结果如下:
$ cat -v new_compile.txt 1) ml.exe /c /coff /I d:masm32include reg_test.asm 2) link.exe /subsystem:windows /libpath:d:masm32lib reg_test.obj
3、析
tr - translate or delete characters
tr [OPTION]... SET1 [SET2]
-d, --delete
delete characters in SET1, do not translate