awk -v参数

-v var=val
--assign var=val
Assign the value val to the variable var, before execution of the program
begins. Such variable values are available to the BEGIN block of an AWK pro-
gram.

posted on 2014-09-09 16:44  zitong  阅读(3756)  评论(0编辑  收藏  举报