假设一楼示例数据文件 test.js 被存为简中编码,以下批处理脚本亦须存为简中编码。- @echo off &setlocal enabledelayedexpansion &set "n=1"
- (for /f "delims=" %%a in ('findstr /i "email password" test.js') do (
- set "b=%%a" &set "e=!b:*email=!" &set "p=!b:*password=!"
- if /i "!b!" neq "!e!" (echo,邮箱地址!n!: !e:~4,-3!)
- if /i "!b!" neq "!p!" (echo,邮箱密码!n!: !p:~4,-3!&set/a n+=1)
- ))>test.new
- endlocal&exit/b
复制代码
|