$1
–
1st Positional Parameter
$1
is the value of the first positional parameter.
Links
Examples
- Print 1st parameter value
1
echo $1
- Print with a fallback value
1
echo ${1-Fallback value}
BashSupport Pro is a Bash and POSIX IDE with support for $1 – try it now!