bash string array example
This commit is contained in:
parent
09352fb219
commit
69c6160a72
7
code/Bash/string_array.sh
Executable file
7
code/Bash/string_array.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
myArray=("cat" "dog" "mouse" "frog")
|
||||||
|
|
||||||
|
for str in ${myArray[@]}; do
|
||||||
|
echo $str
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user