From 69c6160a720aac5ef33d4325b8443ec0c5cc63b6 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Wed, 31 Jul 2024 00:34:51 +0300 Subject: [PATCH] bash string array example --- code/Bash/string_array.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 code/Bash/string_array.sh 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