|
|||
Department of Engineering | |
University of Cambridge > Engineering Department > computing help |
echo this $0 command has $# arguments. echo They are $*
The echo command echoes the rest of the line to the screen by default. Within a shell script, $0 denotes the script's name, $1 denotes the first argument mentioned on the command line and so on. Make the script executable then try it out with various arguments. For example, if you type
args first anotherthen