本帖最后由 wang6542975 于 2015-9-15 18:07 编辑
例子:
原文档:
add action=lookup disabled=no dst-address=1.48.0.0/15 table=TEL
add action=lookup disabled=no dst-address=1.50.0.0/16 table=TEL
add action=lookup disabled=no dst-address=1.68.0.0/14 table=TEL
add action=lookup disabled=no dst-address=1.80.0.0/13 table=TEL
add action=lookup disabled=no dst-address=1.92.0.0/20 table=TEL
add action=lookup disabled=no dst-address=1.180.0.0/14 table=TEL
add action=lookup disabled=no dst-address=1.192.0.0/13 table=TEL
add action=lookup disabled=no dst-address=1.202.0.0/15 table=TEL
add action=lookup disabled=no dst-address=1.204.0.0/14 table=TEL
提取后的效果:
1.48.0.0/15
1.50.0.0/16
1.68.0.0/14
1.80.0.0/13
1.92.0.0/20
1.180.0.0/14
1.192.0.0/13
1.202.0.0/15
1.204.0.0/14
我的代码- for /f "tokens=7 delims==, " %%a in (d:\tel.rsc) do echo %%a >>d:\1.txt
复制代码 提取后每行后面都有一个空格,我不想要这个空格,怎么办? |