lj670 当前离线
上等兵
评分人数
TOP
hfxiang 当前离线
上尉
sed -i -r "s/^.*(《.*).*$/\1/" 00.txt复制代码
aloha20200628 当前在线
sed -i "s/[^《》]*《/《/" 00.txt复制代码
sed -i "s/》[^《》]*$/》/" 00.txt复制代码
sed -i -r "s/[^《》]*《([^《》]+)》[^《》]*/《\1》/g" 00.txt复制代码
qixiaobin0715 当前离线
大校
@echo off (for /f "tokens=1* delims=《" %%a in (00.txt) do ( if "%%b"=="" ( echo,《%%a ) else ( echo,《%%b ) ))>temp del 00.txt ren temp 00.txt pause复制代码
@echo off (for /f "tokens=1-2 delims=《》" %%a in (00.txt) do if "%%b"=="" (echo,《%%a》) else echo,《%%b》)>temp del 00.txt ren temp 00.txt pause复制代码
sed -r "s/[^《》]*《([^《》]+)》[^《》]*/《\1》/g" "00.txt">"_" & move /y "_" "00.txt"复制代码