Try using typecast in awk. It will help.
0! Check your code. error
Works fine when I run with shell
I am also getting the same. But in my case i can see the error in shell script itself.
Hey @Vaishnavi_Singh , from the error message it seems that there is some problem in line 25 of your script. Investigate and try to isolate the problem code. Then figure out the problem. Use the statements and TODO text to understand the requirement.
See, if i run the command in line 25 alone i am not getting any error. Even i tried to check that i am getting the integer value only from the command and its showing correct integer value.Error is coming only when i execute the file.
Issue resolved now. Thank you for the help.
How did you solved the problem ,I am also getting the same problem