query - a shell utility for querying the filesystem
by Ficus Kirkpatrick (ficus@ior.com)

Fortunately for you, the user of this program, the Chemical Brothers
concert tonight was cancelled, and I ended up writing this instead.

This program does a simple emulation of the Tracker's Find by Formula
functionality, by taking a query expression on the command line and
passing it to BQuery, which does the intelligent stuff (like actually
parsing the expression).

You can query all volumes by using the -a option, or a specific volume
by using -v /the/name/of/a/file/on/that/volume.  If you don't specify
one, it defaults to the boot volume.

The source is included, and both it and the program are in the public
domain, but please don't take my name off of it, and I'd appreciate
getting a copy of any changes you've made.

Thanks to Jon Watte for thinking up this program with the best example
usage I can think of:

rm `query '(BEOS:TYPE==text/x-email)&&(MAIL:subject=="Make Money Fast")'`

Have fun,

  -- ficus, 10/30/97
