On 7 Jan 2009, at 16:44, Eric F Crist wrote: > On Jan 7, 2009, at 10:27 AM, Stroller wrote: >> >> I had a crack at this a while back, and ended up when I realised >> how poor my solution was. >> >> IMO you really need to use `file` to check that the files really >> ARE Mac rubbish. > > [snip] > >> Although I would love someone else to address this problem, I too >> would be a little reluctant to use a solution that depended upon >> Ruby, just because I don't know anything about the language. I just >> really like Bash for this sort of thing, just because it's >> everywhere. > > > Bash isn't everywhere, which is why I recommend sh. Well, it's everywhere I am, at least. ;) That's why I choose it. > Bash is in many places, and available almost everywhere, so it's > becoming a popular scripting tool. > > If there is some actual interest in this, I'm willing to code an sh > script to perform this function. As I said, I would love such a tool. > Heck, even perl would be a viable alternative... Indeed. I haven't written anything in it myself, but I have some favourable bias towards perl, too. Stroller.