bash string array example
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
myArray=("cat" "dog" "mouse" "frog")
|
||||
|
||||
for str in ${myArray[@]}; do
|
||||
echo $str
|
||||
done
|
||||
Reference in New Issue
Block a user