1 2 3 4 5 6 7 8
#!/bin/rc -e if(! ~ $#* 2){ echo usage: $0 fromdir todir >[1=2] exit usage } if(! test -d $2) mkdir $2 exec dircp $1 $2