| @if(0)==(0) echo off | | CScript.exe | | pause&goto:eof | | @end | | while (!WScript.StdIn.AtEndOfStream){ | | var str = WScript.StdIn.Readline(); | | f = str.match(/^(\d{4}-\d{2}-\d{2})\b/); | | if (f){ | | f = str.match(/ERROR\s*$/); | | if (f) WScript.Echo(str); | | }; | | else {WScript.Echo(str)}; | | }COPY |
|