E:\我的文档\桌面\awka\新建文件夹>timeit gawk.exe -f test.awk test.txt >nul
Version Number: Windows NT 5.1 (Build 2600)
Exit Time: 10:00 am, Monday, May 20 2013
Elapsed Time: 0:00:08.375
Process Time: 0:00:08.390
System Calls: 201908
Context Switches: 98745
Page Faults: 6790
Bytes Read: 4611650
Bytes Written: 327340
Bytes Other: 650953
E:\我的文档\桌面\awka\新建文件夹>timeit test.exe test.txt >nul
Version Number: Windows NT 5.1 (Build 2600)
Exit Time: 10:00 am, Monday, May 20 2013
Elapsed Time: 0:00:03.046
Process Time: 0:00:03.046
System Calls: 97107
Context Switches: 36341
Page Faults: 28548
Bytes Read: 4450691
Bytes Written: 109665
Bytes Other: 327492
E:\我的文档\桌面\awka\新建文件夹>timeit mawk.exe -f test.awk test.txt >nul
Version Number: Windows NT 5.1 (Build 2600)
Exit Time: 10:01 am, Monday, May 20 2013
Elapsed Time: 0:00:02.703
Process Time: 0:00:02.718
System Calls: 66853
Context Switches: 32698
Page Faults: 3051
Bytes Read: 4454663
Bytes Written: 110994
Bytes Other: 326450
e:\我的文档\桌面>mawk
mawk: no program
mawk: SYNOPSIS
mawk [-W option] [-F value] [-v var=value] [--] 'program text' [file ...]
mawk [-W option] [-F value] [-v var=value] [-f program-file] [--] [file ...]
mawk: OPTIONS
-W version -Wv Version info;
-W dump -Wd outputs assembler-like internal code representation;
-W interactive -Wi unbuff. writes => stdout, line buff. reads <= stdin;
-W exec file -We file last option: Program is read from file;
-W sprintf=num -Ws=num set size of the internal sprintf buffer to num bytes;
-W posix_space -Wp forces mawk not to consider '\n' to be space;
-F value sets the field separator, FS, to value;
-v var=value assigns value to program variable var;
-f program-file program text is read from file instead of from the
command line, multiple use of -f options is allowed;
-- indicates the unambiguous end of options.
e:\我的文档\桌面>mawk -W version
mawk 1.3.3/Win32 Nov 1996, Copyright (C) Michael D. Brennan
Ported to Win32 by O. Schoenfeldt (http://www.klabaster.com)
Open Watcom C/C++ 1.8
compiled limits:
max NF 32767
sprintf buffer 1020
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |