SyntaxFix
Write A Post
Hire A Developer
Questions
This is the most direct way to unset a value if you know it's position.
$ array=(one two three) $ echo ${#array[@]} 3 $ unset 'array[1]' $ echo ${array[@]} one three $ echo ${#array[@]} 2