$3  –  3rd Positional Parameter

$3 is the value of the third positional parameter.

Examples

Print 3rd parameter value
1
echo $3
Print with a fallback value
1
echo ${3-Fallback value}
BashSupport Pro is a Bash and POSIX IDE with support for $3try it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal