snipplets.dev/code/Bash/string_array.sh

8 lines
97 B
Bash
Executable File

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