snipplets.dev/code/Bash/string_array.sh

8 lines
97 B
Bash
Raw Permalink Normal View History

2024-07-31 00:34:51 +03:00
#!/bin/bash
myArray=("cat" "dog" "mouse" "frog")
for str in ${myArray[@]}; do
echo $str
done