$6  –  6th Positional Parameter

$6 is the value of the sixth positional parameter.

Examples

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