bash string array example

This commit is contained in:
Alexander Popov 2024-07-31 00:34:51 +03:00
parent 09352fb219
commit 69c6160a72

7
code/Bash/string_array.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
myArray=("cat" "dog" "mouse" "frog")
for str in ${myArray[@]}; do
echo $str
done