m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/bash.md
diff options
context:
space:
mode:
Diffstat (limited to 'bash.md')
-rw-r--r--bash.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/bash.md b/bash.md
index 6258795..87eb04d 100644
--- a/bash.md
+++ b/bash.md
@@ -78,6 +78,10 @@ All keys:
${!array[*]}
${!array[@]}
+## Commandline arguments
+
+* `$#`: number of arguments.
+
## Getopts example
while getopts 'a:b:c' flag; do