Is it possible to pass variable from awk to shell script

Hello experts,

can I return a value from gawk to a shell script ?

My script as follows,

#Here I want the num[1] value to shell script so that I can use later 
gawk ' 
{
        split($0,num,",");
        print num[1]
}'
gawk -v no=$number '{print no}'

file1

000000,CB1F,0,0,0,0,1,0,1

I want to return the variable num[1] from one gawk to shell script or to other gawk block.

Please help ....

I scrolled down to the bottom of the page, and I found similar topic, HTH.

Thank you for the reply .

Yeah I saw that thread before I posted this thread ,
but I found nothing useful for my code or my need there. Thats why I posted my problem here.

Regards,
User_prady

something like this,

var=`awk '{ split($0, num, ","); print num[1] }' a`
echo $var