$1  –  1st Positional Parameter

$1 is the value of the first positional parameter.

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 $1try it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal