From 0ed803f8649b6e87905e8deafc99f3fcf1ab306d Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Thu, 30 Jan 2025 19:13:37 +0200 Subject: [PATCH] $: add examples (#15636) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/$.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/$.md b/pages/common/$.md index 0bf05a5c90..380c406d82 100644 --- a/pages/common/$.md +++ b/pages/common/$.md @@ -22,3 +22,11 @@ - Expand with the output of `command` and run it. Same as enclosing `command` in backtics: `$({{command}})` + +- List how many arguments the current context has: + +`echo $#` + +- Print out a Bash array: + +`echo ${array[@]}`