Shell
$0..$9
Positional parameters in shell scripts and functions.
Ubuntu
Debian
Arch
Fedora
CentOS
SUSE
Alpine
macOS
FreeBSD
Verified: 2026-05-12
Syntax
$echo $0 $1 $2
Examples
$./script.sh arg1 arg2
$echo "Script: $0, first argument: $1"
Typical use cases
?
Standard usage
$0..$9 --help
Note
$0 is the script name, $1..$9 are the first nine arguments.
Export