Skip to content

Commit

Permalink
bash: expanded working with arrays (rstacruz#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrHeinz authored Jun 23, 2020
1 parent 6b7e8ed commit 3a918a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bash.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ echo ${#Fruits[@]} # Number of elements
echo ${#Fruits} # String length of the 1st element
echo ${#Fruits[3]} # String length of the Nth element
echo ${Fruits[@]:3:2} # Range (from position 3, length 2)
echo ${!Fruits[@]} # Keys of all elements, space-separated
```
### Operations
Expand Down

0 comments on commit 3a918a1

Please sign in to comment.