sh2 1 2 3 4 5 6 7 8 > osh2 #!/bin/csh echo the process ID is $$ echo the name of the script is $0 echo the first argument is $1 echo the second argument is $2 echo the third argument is $3 echo the fourth argument is $4 echo the fifth argument is $5 echo all the arguments are $* shift echo the first argument is $1 echo the second argument is $2 echo the third argument is $3 echo the fourth argument is $4 echo the fifth argument is $5 echo all the arguments are $* shift echo the first argument is $1 echo the second argument is $2 echo the third argument is $3 echo the fourth argument is $4 echo the fifth argument is $5 echo all the arguments are $* date > $0.$$ ls -l $0.$$ cat $0.$$ rm $0.$$ produces #!/bin/csh echo the process ID is $$ echo the name of the script is $0 echo the first argument is $1 echo the second argument is $2 echo the third argument is $3 echo the fourth argument is $4 echo the fifth argument is $5 echo all the arguments are $* shift echo the first argument is $1 echo the second argument is $2 echo the third argument is $3 echo the fourth argument is $4 echo the fifth argument is $5 echo all the arguments are $* shift echo the first argument is $1 echo the second argument is $2 echo the third argument is $3 echo the fourth argument is $4 echo the fifth argument is $5 echo all the arguments are $* date > $0.$$ ls -l $0.$$ cat $0.$$ rm $0.$$ sh2 1 2 3 4 5 6 7 8 > osh2 produces the process ID is 8978 the name of the script is sh2 the first argument is 1 the second argument is 2 the third argument is 3 the fourth argument is 4 the fifth argument is 5 all the arguments are 1 2 3 4 5 6 7 8 the first argument is 2 the second argument is 3 the third argument is 4 the fourth argument is 5 the fifth argument is 6 all the arguments are 2 3 4 5 6 7 8 the first argument is 3 the second argument is 4 the third argument is 5 the fourth argument is 6 the fifth argument is 7 all the arguments are 3 4 5 6 7 8 -rw-r--r-- 1 teo faculty 29 Jul 31 13:30 sh2.8978 Mon Jul 31 13:30:42 PDT 2006