jackesy 当前离线
一级士官
TOP
weichenxiehou 当前离线
上尉
@echo off&setlocal enabledelayedexpansion for /f "delims=" %%i in ('findstr /i "sys\sys_" aa.txt') do ( set "str=%%i"&set "str=!str:*sys\sys_=!"&set "str=!str:~,5!" cd.>!str!.exe&goto :eof )复制代码
@echo off&setlocal enabledelayedexpansion for /f "skip=2 delims=" %%i in ('find /i "sys\sys_" aa.txt') do ( set "str=%%i"&set "str=!str:*sys\sys_=!"&set "str=!str:~,5!" set NS=!str!&goto :end ) :end echo %NS% goto :eof复制代码
awk 当前离线
findstr /i "sys\sys_" a.txt findstr /i "sys\\sys_" a.txt findstr /i /c:"sys\sys_" a.txt findstr /i /l "sys\sys_" a.txt复制代码
gawk "/SYS\\SYS_/{gsub(/.*SYS\\SYS_/,\"\");gsub(/\\.*/,\"\"); print >$0\".txt\"}" a.txt复制代码
评分人数
FOR 当前离线
中尉
gawk "/SYS\\SYS_/{s=index($0,\"SYS\\SYS_\")+8;print substr($0,s,5)}" a.txt复制代码