|
Use of index in UNIX shell scripting
I have following line of code with me in one of the shell script.
LIST=`awk -v SRV=$SRV -v GRP=$GRP -v ID=$ID '{ if (index($0, GRP) && index($0, SRV) == 2 )
Can anybody help me in understanding the code ? specifically the bold one
|