关于BAT过滤内容:
58.51.144.0255.255.255.0172.2.0.12172.2.0.12158.51.150.0255.255.255.0172.2.0.12172.2....
58.51.144.0 255.255.255.0 172.2.0.12 172.2.0.12 1
58.51.150.0 255.255.255.0 172.2.0.12 172.2.0.12 1
58.53.93.0 255.255.255.0 172.2.0.12 172.2.0.12 1
过滤成:58.51.144.0-255.255.255.0-58.51.150.0-255.255.255.0-58.53.93.0-255.255.255.0- 代码应该怎么写? 展开
58.51.150.0 255.255.255.0 172.2.0.12 172.2.0.12 1
58.53.93.0 255.255.255.0 172.2.0.12 172.2.0.12 1
过滤成:58.51.144.0-255.255.255.0-58.51.150.0-255.255.255.0-58.53.93.0-255.255.255.0- 代码应该怎么写? 展开
1个回答
2013-03-28
展开全部
@echo off
for /f "tokens=1,2 delims= " %%l in (ip.txt) do echo %%l %%m
pause读取一行,然后把空格作为分隔符,分成四字符串,去第一个第二个
for /f "tokens=1,2 delims= " %%l in (ip.txt) do echo %%l %%m
pause读取一行,然后把空格作为分隔符,分成四字符串,去第一个第二个
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询