1270697389 当前离线
上尉
评分人数
WHY 当前离线
上校
sed -r "/^.{11}$/!d" a.txt > b.txt复制代码
powershell -c "(get-Content a.txt) -match '^.{11}$'>b.txt"复制代码
TOP
pcl_test 当前离线
荣誉版主
//&cls&cscript -nologo -e:jscript "%~f0"<"文本.txt" 11&pause&exit var str = WSH.StdIn.ReadAll().split(/\s+/); for(var i=0; i<str.length; i++){ if(str[i].length==WSH.Arguments(0))WSH.echo(str[i]); }复制代码
@echo off for /f "delims=" %%i in (a.txt) do ( set "s=%%i" setlocal enabledelayedexpansion if "!s:~11!" == "" if not "!s:~10!" == "" echo;!s! endlocal ) pause复制代码