Community Page
- www.tech-recipes.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Thanks..:)
- unfortunately, the organize button is not highlighted so i can't get to the next step. Any suggestions?
- i found it after i sent it lol blondie here lol.. just sent u a message on the wii.! thanks!
- micheal send a nice phone and picture to me.
- Yes, but here it is again. It is 4285 2670 2528 4658
2 years ago
http://www.tech-recipes.com/bourne_shell_script...
:oops: works as long as you do not try and remove element 0. Look at just this part:
${array[@]:0:$i}and you will notice the array is rebuilt using items 0 through $i. The 0 will cause element 0 to stay in the array even if
i=0Does anyone have a better fix than this:
#remove i from array
if [ $i -ne 0 ]; then
array=( ${array[@]:0:$i} ${array[@]:$(($i + 1))} )
else
array=( ${array[@]:$(($i + 1))} )
fi
10 months ago
#remove i from arrayunset array[$i]
array=( ${array[@]} )