dircp 192 B

123456789
  1. #!/bin/rc
  2. switch($#*){
  3. case 2
  4. # explicitly mention /fd/* to work with both plan 9 and ape tar
  5. @{cd $1 && tar cf /fd/1 .}|@{cd $2 && tar xf /fd/0}
  6. case *
  7. echo usage: dircp from to >[1=2]
  8. }