Ravi Sir's Cards › AWS
Script arguments
This revision card explains Script arguments. It starts from the need that $1, $2 = first, second. It describes $# = how many. The how-to section notes "$@" = all, safely. An example on the card is drop the first.
Read card text
What this card says
Why do we need it?
$1, $2 = first, second.
What is it?
$# = how many.
How to do it
"$@" = all, safely.
Example
Drop the first.
shift