Skip to content

Instantly share code, notes, and snippets.

View tamboril's full-sized avatar

John Harris tamboril

View GitHub Profile
@Integralist
Integralist / bash-array-shift.sh
Last active March 7, 2022 05:27
Zsh and Bash Array Shift (remove first item from the Array)
array=(foo, bar, baz)
echo ${array[@]} # => foo, bar, baz
array=("${array[@]:1}")
echo ${array[@]} # => bar, baz
array=("${array[@]:1}")
echo ${array[@]} # => baz