How can I add an element to the middle of a bash array and shift the elements in front of it?

后端 未结 0 762
北海茫月
北海茫月 2020-12-17 19:53

I have an array in bash, which is declared as

string=\'var1/var2/var3\';
IFS=\'/\' read -r -a array <<< $string

So the array is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题