首页 > 代码库 > awk -v参数

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.

awk -v参数