Wondering what $@ does - is it a variable of some kind?
Yes it is variable and display you list of command line arguments passed.
create a script, with echo statement in it.
and then run script.
sh test.sh 1 2 4
It should display arguments,
Wondering what $@ does - is it a variable of some kind?
Yes it is variable and display you list of command line arguments passed.
create a script, with echo statement in it.
and then run script.
sh test.sh 1 2 4
It should display arguments,