Passing shell variables into an awk script
# different ways to print lname and name.
# we piped the value of name and access the shell var lname from within awk
##
export lname=smith
export name=bob
echo $name |awk '{ print $0, ENVIRON["lname"] }'
02/03/2005