I have a question about passing an array variable to AWK - is this possible?
For example, I have an array defined in C shell:
set array = ( 3 43 56 39 40 100 2 33 )
I want to invoke an AWK script that can use this array:
awk -f script.awk -v SomeVar1=5 -v ArrayVar=$array < input.dat >...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.