Please see the code below, the idea is that I need the third line as it is because I declare several input_${k} and fill them with a lot of values (so I iterate over k). I kept it simple for you by isolating 1 variable here and only filling it with '1'. My only problem is that the node.py line does not receive the content of input_1_128 ( here a user input is simulated using <<< ), but 'input_1_128: command not found'. Here I need it to send 1 to the python script. Can you guys help me please?
declare input_2_128=''
k=1
declare input_${k}_128+='1'
python3 node.py <<< $(input_${k}_128)
Please note that if I write
echo $(input_1_128)
It will show the correct value (1) but I must use the first version (using $k). I type 'bash myscript.sh' to run the script if that is relevant here. I thank you all for your help. Of course do not hesitate to ask for more details