special variable $@ and $*

Tom H tomh0665 at gmail.com
Sat Dec 5 09:03:18 UTC 2009


> http://tldp.org/LDP/abs/html/internalvariables.html#APPREF
> I did not understand the difference between $@ and $* special variable.
> Please explain me with an example.

./script "name with spaces"

For the above
$* is expanded to three arguments, "name", "with", and "spaces"
$# is expanded to one argument, "name with spaces"




More information about the ubuntu-users mailing list