$4  –  4th Positional Parameter

$4 is the value of the fourth positional parameter.

Examples

Print 4th parameter value
1
echo $4
Print with a fallback value
1
echo ${4-Fallback value}
BashSupport Pro 是一款 Bash 和 POSIX 集成开发环境,支持 $4 - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款