From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 6 Oct 2005 00:14:39 -0400 From: Russ Cox To: Jack Johnson , 9fans <9fans@cse.psu.edu> Subject: Re: [9fans] stubbing In-Reply-To: <6e35c0620510051953r41035e20kfdefbb1d3089e94f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6e35c0620510051953r41035e20kfdefbb1d3089e94f@mail.gmail.com> Cc: Topicbox-Message-UUID: 953ea1b6-ead0-11e9-9d60-3106f5b1d025 For this particular application, venti and vac are overkill. md5=3D`{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