diff --git a/bash.md b/bash.md index c62e46080..3a3b6159a 100644 --- a/bash.md +++ b/bash.md @@ -455,6 +455,7 @@ Fruits[2]="Orange" ```bash echo ${Fruits[0]} # Element #0 +echo ${Fruits[-1]} # Last element echo ${Fruits[@]} # All elements, space-separated echo ${#Fruits[@]} # Number of elements echo ${#Fruits} # String length of the 1st element