find with XPath over file system

I think my development is of some interest:

find with XPath over file system
http://uucode.com/texts/xfind/index.html

The standard UNIX utility find now supports XPath:

$ ./find -xpath '/bin/*[@size > /bin/bash/@size]'
/bin/ipv6calc
/bin/rpm

XML can be considered as an external representation of in-memory tree-like structures, and the XML-related standards -- as methods of processing such data. I'm working on a reusable XPath implementation, and the new find is a reference implementation for adding XPath into the C programs.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Standard?

This is pretty amazing! I hink you found a very good example to demonstrate your library.

When you say "The standard UNIX utility find now supports XPath", does that mean that this will be included in the standard find?

no, just a patch

No, it will never be included in the standard find: http://lists.gnu.org/archive/html/bug-findutils/2005-01/msg00107.html, and I completely agree.

It looks like the title is a bit misleading. I wanted to emphasize that I hadn't written a program from scratch, but added the XPath facility to a legacy code, and the legacy code is the standard find.