what is difference between $@ and $* in UNIX Shell script

Answer Posted / yogesh malkoti

In a shell script :

$@: each quoated string treated as a separate argument
while gving at command line.

$*: stores the complete set of positional parameters as a
single string

Is This Answer Correct ?    45 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to find what is in your home directory?

760


How do you insert comments in the command line prompt?

936


what is the fastest way to enter a series of commands from the command-line in linux

760


How do I move to root in linux?

721


Explain about chmod options filename?

840


How do you grep?

738


If the programmer wishes to execute an instruction at the specified time. Which command is used?

1192


What is whois command in linux?

774


Which daemon is used for scheduling of the commands?

765


Where is command history stored in linux?

738


You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this?

695


What does comm do and how to use it?

759


What command is used to check the number of files, disk space, and each user’s defined quota?

751


What does cd – command do?

806


Who linux commands?

776