Assigning dynamic bash variable names using a for loop seq

后端 未结 3 1157
离开以前
离开以前 2020-12-19 18:56

So I\'m trying to do something, not sure if it\'s possible. I have the following code:

for i in {0..5}; do
    if [[ -f ./user$i ]]; then
        group$i=$(g         


        
3条回答
提交回复
热议问题