#!/bin/rc switch($#*){ case 2 {cd $1 && /bin/tar c .} | {cd $2 && /bin/tar xT} case * echo usage: cpr fromdir todir >[1=2] }