|Thanks for your help.|
However, the scenerio i have to use is- I want to use the variable again in FOR loop (kind of nested FOR loop) hence I want to store the IPs one by one in that variable and then using same variable in the inner FOR loop body to run another command (telent command).
Hope I am clear in explaining the requirement.
I tried searching a lot for this... However no luck... :(