Saturday, September 25, 2010

PASS parameter to AWK - The UNIX and Linux Forums

PASS parameter to AWK - The UNIX and Linux Forums: "You can also assign variables on the command line, e.g....

awk -v a=1 -v b=2 -v c=3 -f test.awk

The -v option means that the variables are assigned before the BEGIN section.

- Sent using Google Toolbar"

No comments:

Post a Comment