Use of $* and $@

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashokd001
    New Member
    • Aug 2008
    • 30

    Use of $* and $@

    Hi

    The difference between $* and S@ is below,
    $* Returns a single string (``$1, $2 ... $n'')
    $@ Returns a sequence of strings (``$1'', ``$2'', ... ``$n'')

    But i am not getting the scenario where to use $* and where to use $@

    Please give some suggestion with practical example(sample section of script).

    Thanks in advance.
    Any suggestion is highly appriciated.

    -Ashok
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    You should really read this page.


    Oh, by the way, Google is your friend.

    Regards,

    Jeff

    Comment

    Working...