5th Positional Parameter

$5 is the value of the fifth positional parameter.

Examples

Print 5th parameter value :

1
echo $5

Print with a fallback value :

1
echo ${5-Fallback value}
BashSupport Pro is a Bash IDE with support for $5 – try it now!
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal