- @if(0)==(0) echo off
- CScript -NoLogo -E:JScript %0 <a.txt >b.txt
- pause&goto:eof
- @end
- var arr = [];
- while (!WScript.StdIn.AtEndOfStream){
- arr.push(WScript.StdIn.Readline().replace(/ +/," ").split(" "));
- }
- arr.sort(function(a, b){ return a[1] - b[1] });
- for (var i = 0, len = arr.length; i < len; i++) {
- WSH.Echo(arr[i].join(" "))
- }
复制代码
|