1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-22 22:33:29 +02:00

Merge pull request #4316 from gabrielsroka/patch-1

[bash/en] fix typo
This commit is contained in:
Marcel Ribeiro Dantas, Ph.D
2022-07-13 22:08:51 +02:00
committed by GitHub

View File

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