man taggrep (Commandes) - print the parts of a tag collection matching a given tag expression

NAME

taggrep - print the parts of a tag collection matching a given tag expression

SYNOPSIS

taggrep [options] [expression] [files...]

DESCRIPTION

taggrep is a commandline utility to filter the elements of a tagged collection.

A tagged collection is a set of items in which each item is associated with a set of zero or more tags, in no particular order.

taggrep reads a tagged collection and, like grep, prints only the lines that match or do not match a given expression. Like grep uses regular expression to match strings, taggrep uses tag expressions to match the set of tags associated to a given item.

For documentation on the format of tagged collections and tag expressions, please refer to the tagcoll(1) manpage.

OPTIONS

This program follows the usual GNU command line syntax, with long options starting with two dashes (`-').

--help
Print an help message and exit.
--version
Print the program version and exit.
-v, --invert-match
Invert the sense of matching, to select non-matching lines.
-q, --quiet
Do not write anything to standard output, but exit with 0 if any match is found.

EXAMPLES

# Output the collection of all mail clients
taggrep 'mail && client' collection

# Output a collection without all elements marked with 'partially-tagged' taggrep -v 'partially-tagged' collection

# Check if a collection contains mail clients and word processors taggrep -q '(mail && client) || office::wordproc' collection-file && echo Yes

SEE ALSO

AUTHOR

taggrep has been written by Enrico Zini <enrico@debian.org> for the purpose of experimenting with tagged collections and related algorithms: all possible feedback and ideas are thus more than welcome.

Erich Schubert, Herv['e] Eychenne, and many others have contributed a great deal of feedback and ideas.