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

What does in makefile do?

562


How do I run bash on windows?

510


Which is the required command for checking the file system?

542


What is df -h command?

666


What is tail command in linux?

540






How do I find command history in linux?

491


What is the difference between kill and kill in linux?

771


Why is it called bash?

500


What is ps command in linux?

546


What is tty name?

564


What is clang format?

532


What does bash stand for?

548


How do you do nslookup?

539


What is the difference between locating and locate command?

529


What would be the result of the command paste -s dog cat?

537