$1 is the first argument.
$@ is all of them.

How can I find the last argument passed to a shell
script?

29 Answers
29

Leave a Reply

Your email address will not be published. Required fields are marked *