i am facing an issue and could not understand the possible reason...
When the following command is executed from command line (from # prompt) the output is as desired but executing the same from a shell script, the result is an error. It is important for the command to execute in the script as there are other calculations dependent on this variable.
command executed from command line and output is an array with values as desired
executing same from script
Excerpt of the script is something like this
I appreciate if the issue can be resolved as soon as possible.