ilovebath 当前离线
列兵
评分人数
TOP
awk 当前离线
上尉
gawk "{a[$0]++}END{for(i in a){if(a[i]>1)print i,a[i]}}" a.txt复制代码
CrLf 当前离线
论坛巡查
@echo off for /f "delims=" %%a in (1.txt) do set /a @%%a+=1 (for /f "tokens=1,2 delims==" %%a in ('set @') do ( set var=%%a setlocal enabledelayedexpansion echo !var:~1!-%%b次 endlocal ))>2.txt复制代码