This content has been marked as final. Show 1 reply
There's no (straightforward) means of pattern-matching in a predicate. However, you do have subroutines in DTrace that can further your cause. If the name of your file is a sufficient match, i.e., you're not worried about matching against a same-name file in another likely directory:
string basename(char *str)
Or, you can use
string cleanpath(char *str)
if collapsing a directory with redundant elements is sufficient.
Whatever you can do with those operations, logically ANDed together, is what you can do.