chickadee » augeas » aug-match

aug-match a pathprocedure
aug-match-count a pathprocedure

aug-match returns a list of all single node paths matching the XPath expression PATH.

aug-match-count is like aug-match but returns the number of matches. This is more efficient than (length (aug-match ...)).

For information on the XPath expressions accepted by Augeas, see the Augeas path expression docs.


(aug-match a "/files/etc/hosts/*/ipaddr")
 ;=> ("/files/etc/hosts/1/ipaddr" "/files/etc/hosts/2/ipaddr")