2014年11月19日
摘要: 1.awk中引用外部变量,有三种方式awk 'pattern{action}' file1)awk '{print a,b}' a=111 b=222 file,此时BEGIN模块无法用该变量2) awk -v a=111 b=222 '{print a,b}' file3) a=111;b="网页... 阅读全文
posted @ 2014-11-19 20:04 lss1990 阅读(185) 评论(0) 推荐(0) 编辑