new 203 B

12345678910
  1. #!/bin/rc
  2. id=`{cat /mnt/acme/new/ctl}
  3. id=$id(1)
  4. cmd = $*
  5. if(~ $#cmd 0) cmd = cat
  6. echo 'name '^`{pwd}^/-^`{basename $cmd(1)} > /mnt/acme/$id/ctl
  7. $cmd > /mnt/acme/$id/body
  8. echo clean > /mnt/acme/$id/ctl