cp $@ ~/backup
Hello all,
cp $@ ~/backup This command executed not successfully but the book <<Linux shell cookbook>> did this. Who can help me to explain what's the meaing of this command and waht's $@ ? Thanks |
Section 3.2.5 http://tldp.org/LDP/Bash-Beginners-G...ml#table_03_01
|
I guess, it's a part of some script. The $@ is used for positional parameters, starting from one. For example you invoke:
Code:
~$ ./script file1 file2... Code:
cp file1 file2... ~/backup |
http://www.gnu.org/software/bash/man...Shell-Features
section - 3.2.5. Special parameters |
All times are GMT -5. The time now is 03:03 PM. |