#!/bin/csh -f

foreach file ($*)
  cp $file /tmp
  if (! $status) markdups /tmp/$file > $file
  rm -f /tmp/$file
end
