$* – All command line parameters
$@ – All command line parameters
“$*” – takes the entire list as one argument
“$@” – takes the entire list and seperates into seperate arguments
bash-3.00$ less test.sh
#!/usr/bin/shfor str in “$*”
do
echo $str
donebash-3.00$ ./test.sh a b c
a b c
bash-3.00$ less test.sh
#!/usr/bin/shfor str in $*
do
echo $str
donebash-3.00$ ./test.sh a b c
a
b
c






math said
Hi,
Thanks, Very nice explanation. Easy to understand.