If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
either with the -v option on the command line (see man awk) or by taking the variable outside the script ie:
1) ... awk -v v=$val1 '{print v}'....
OR
2) ... awk '{print "'$val1'"}'...