Update bash.html.markdown

fix minor typo
This commit is contained in:
Gabriel Sroka 2022-02-01 19:38:03 -08:00 committed by GitHub
parent 2f05725cc0
commit 09694f73db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ echo ${array0[@]} # => "one two three four five six"
echo ${#array0[@]} # => "6" echo ${#array0[@]} # => "6"
# Print number of characters in third element # Print number of characters in third element
echo ${#array0[2]} # => "5" echo ${#array0[2]} # => "5"
# Print 2 elements starting from forth # Print 2 elements starting from fourth
echo ${array0[@]:3:2} # => "four five" echo ${array0[@]:3:2} # => "four five"
# Print all elements. Each of them on new line. # Print all elements. Each of them on new line.
for i in "${array0[@]}"; do for i in "${array0[@]}"; do