clock874 当前离线
列兵
xczxczxcz (Tα酱油路过)当前离线
中尉
@echo off & cd /d "%~dp0" (for /f "delims=" %%a in (00.txt) do echo %%a|findstr ".*\[.*\].*">nul && echo %%a)>ok.txt pause复制代码
(gc 00.txt|%{if($_ -match '.*\[.*\].*'){$_}})>ok.txt pause复制代码
TOP
WHY 当前离线
上校
$arr = type a.txt -Delimiter ']' -ReadCount 0; sc b.txt -Value ($arr[0]+$arr[1])复制代码