$1
–
1st Positional Parameter
$1 is the value of the first positional parameter.
Links
Examples
- Print 1st parameter value
1echo $1- Print with a fallback value
1echo ${1-Fallback value}
BashSupport Pro 是一款 Bash 和 POSIX 集成开发环境,支持 $1 - 立即试用!