For this particular application, venti and vac are overkill.
md5=`{md5sum <$file}
mkdir -p `{echo $md5 | sed 's!(...)(...)!\1/\2!'}
mv $file `{echo $md5 | sed 's!(...)(...)(.*)!\1/\2/&'}Also, for the particular motivation of rejecting viruses, I've been very happy with /mail/lib/validateattachment (called by upas/vf). I haven't gotten a virus via Plan 9 in months, and I used to get a handful every day. Russ
