xlkindy 当前离线
列兵
评分人数
bat007 当前离线
六级士官
gawk "/<提取行>/{n=split($0,a,\")\");for(i=1;i<n-1;i++)printf \"%s(\",a[i];print a[i]}" a.txt | gawk -F( "{for(i=2;i<NF;i+=2)printf \"%s;\",$i;print $i}" >b.txt复制代码
TOP
sgaizxt001 当前离线
大校
lvsehuaxue 当前离线
@echo off&setlocal enabledelayedexpansion for /f "delims=" %%i in ('findstr "提取行" a.txt') do ( set "v=%%i" set "v=!v:(= !" set "v=!v:)= !" set "v=!v:<=!" set "v=!v:>=!" for %%i in (!v!) do ( set /a n=n%%2+1 if !n! == 2 set str=!str!%%i, ) echo !str:~,-1! set str= ) pause复制代码