|
发现一个bug,下面文件内容:
[Config.iaStor]
value = "", tag, REG_DWORD, 1b
value = "", ErrorControl, REG_DWORD, 1
value = "", Group, REG_SZ, "SCSI Miniport"
value = "", Start, REG_DWORD, 0
value = "", Type, REG_DWORD, 1
WENV for /f "eol=; delims=" %i in ( ${OEMFILE} ) do echo %i > (rd)+1
我的目的是清除多余的注释行,结果发现生成的结果变成:
[Config.iaStor]
value = ", tag, REG_DWORD, 1b
value = ", ErrorControl, REG_DWORD, 1
value = ", Group, REG_SZ, "SCSI Miniport"
value = ", Start, REG_DWORD, 0
value = ", Type, REG_DWORD, 1
现在还是采取简单办法:
cat --locate=\x22 --replace=\x21 %OEMFILE%
到时再变回来。
[ 本帖最后由 zhaohj 于 2011-5-24 11:25 编辑 ] |
|