#!/bin/rc switch($#*){ case 2 @{cd $1 && tar c .}|@{cd $2 && tar x} case * echo usage: dircp from to >[1=2] }