How can i delete an element in an array and then shift the array in Shell Script?

前端 未结 4 1005
迷失自我
迷失自我 2021-01-01 23:46

First let me state my problem clearly:

Ex: Let\'s pretend this is my array, (the elements don\'t matter as in my actual code they vary):

array=(jim         


        
4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-02 00:05

    this post had been revised and moved to its own post as a more in-depth tutorial how to remove an array element correctly in a for loop

提交回复
热议问题