Getting all elements of a bash array except the first

$ a=(1 2 3)
$ echo "${a[@]:1}"
2 3

Leave a Comment