SyntaxFix
Write A Post
Hire A Developer
Questions
You can utilize ARGV:
v=123test awk 'BEGIN {print ARGV[1]}' "$v"
Note that if you are going to continue into the body, you will need to adjust ARGC:
awk 'BEGIN {ARGC--} {print ARGV[2], $0}' file "$v"