摘要: Awk 的调用语法: awk [ -F<ch> ] {pgm} | { -f <pgm_file> } [ <vars> ] [ - | <data_file> ]-- where: ch: Field-separator character. pgm: Awk command-line program. pgm file: File contain... 阅读全文
posted @ 2010-01-08 22:19 小楼 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 如果我们需要的AWK指令很多,在命令行中敲入大量命令行很不方便,这时候我们就可以把这些命令写入一个文件,然后让AWK去通过文件区运行这些命令:awk -f <awk program file name> inputfilename注意:1. 注释以#开始2. 多个语句可以写在一行,每个语句之间通过";"分割3.printf("<format_code>",<param... 阅读全文
posted @ 2010-01-08 22:02 小楼 阅读(249) 评论(0) 推荐(0) 编辑
摘要: AWK is a programming language that is designed for processing text-based data, either in files or data streams, and was created at Bell Labs in the 1970s.Basic Concept of AWK:A file consists of record... 阅读全文
posted @ 2010-01-08 21:09 小楼 阅读(476) 评论(0) 推荐(0) 编辑