summaryrefslogtreecommitdiff
path: root/Bash Arrays.md
diff options
context:
space:
mode:
Diffstat (limited to 'Bash Arrays.md')
-rw-r--r--Bash Arrays.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bash Arrays.md b/Bash Arrays.md
new file mode 100644
index 0000000..db222ee
--- /dev/null
+++ b/Bash Arrays.md
@@ -0,0 +1,2 @@
+Length of an array: `${#arr[@]}` -> `$#` = number of args , `${#str}` length of string str, `${#arr[@]` length of array, `${#arr}` length of first entry in array ie length of str for example.
+