思想之翼 当前离线
上尉
pd1 当前离线
五级士官
<# : @echo off powershell -NoProfile -ExecutionPolicy bypass "Get-Content -literal '%~f0' |Out-String|Invoke-Expression" pause #> $min=(gc .\1.txt|%{$_.Split(" ")[-1]}|sort)[0] gc .\1.txt|?{$_.Split(" ")[-1] -ne $min }|%{$_ >>2.txt}复制代码
评分人数
TOP
WHY 当前离线
上校
gawk -v min="10000000000" "NR==FNR {min=min>$2?$2:min} NR>FNR && $2!=min" 1.txt 1.txt > 2.txt复制代码
PowerShell "$arr = gc 1.txt -ReadCount 0; $min = ($arr -replace '^\S+' | measure -Min).Minimum; $arr -notMatch ('\b' + $min + '$')" > 2.txt复制代码
77七 当前离线
中校
@echo off setlocal enabledelayedexpansion set n=100000000 for /f "useback tokens=2 delims= " %%a in ("1.txt") do ( if %%a lss !n! ( set n=%%a ) ) findstr /vec:" %n%" 1.txt > 2.txt endlocal pause复制代码