diff --git a/bash.md b/bash.md index 001186ee6..9a0fc5924 100644 --- a/bash.md +++ b/bash.md @@ -447,6 +447,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