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 ....