我也来个- @if (0)==(0) echo off
- cscript //nologo //e:jscript "%~f0" < a.txt
- pause & exit
- @end
-
- var arr = WSH.StdIn.ReadAll().replace(/^.{10}/mg, '').match(/[^\r\n]{6,}/g).sort();
- var s = ''; arr.push('');
- for(var i=0; i<arr.length-1; i++){
- s += arr[i];
- if(arr[i].substr(0,6)!=arr[i+1].substr(0,6)){ WSH.Echo(s); s = ''; }
- }
复制代码
|