diff --git a/code/Bash/string_array.sh b/code/Bash/string_array.sh new file mode 100755 index 0000000..d7935c1 --- /dev/null +++ b/code/Bash/string_array.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +myArray=("cat" "dog" "mouse" "frog") + +for str in ${myArray[@]}; do + echo $str +done