The code: N_NODES=${N_NODES#*-*} N_NODES=$(($N_NODES + 1))
Take cares only the case with a range of nodes: 0-8
But not some specific nodes like in this case: 0,8
The code: ${N_NODES# *-*} $(($N_NODES + 1))
N_NODES=
N_NODES=
Take cares only the case with a range of nodes:
0-8
But not some specific nodes like in this case:
0,8