Man page - git-annex-matchexpression(1)
Packages contas this manual
- git-annex-dropunused(1)
- git-annex-log(1)
- git-annex-groupwanted(1)
- git-annex-findcomputed(1)
- git-annex-enable-tor(1)
- git-annex-addcomputed(1)
- git-annex-info(1)
- git-annex-recompute(1)
- git-annex-lock(1)
- git-annex-fuzztest(1)
- git-annex-checkpresentkey(1)
- git-annex-fromkey(1)
- git-annex-filter-branch(1)
- git-annex-unlock(1)
- git-annex-find(1)
- git-annex-reregisterurl(1)
- git-annex-required(1)
- git-annex-readpresentkey(1)
- git-annex-initcluster(1)
- git-annex-vicfg(1)
- git-annex-mincopies(1)
- git-annex-fix(1)
- git-annex-initremote(1)
- git-annex-preferred-content(1)
- git-annex-mirror(1)
- git-annex-satisfy(1)
- git-annex-pull(1)
- git-annex-move(1)
- git-annex-matching-expression(1)
- git-annex-remotedaemon(1)
- git-annex-findkeys(1)
- git-annex-updatecluster(1)
- git-annex-restage(1)
- git-annex-registerurl(1)
- git-annex-unused(1)
- git-annex-proxy(1)
- git-annex-transferkeys(1)
- git-annex-matchexpression(1)
- git-annex-expire(1)
- git-annex-pre-commit(1)
- git-annex-whereis(1)
- git-annex-reinit(1)
- git-annex-merge(1)
- git-annex-metadata(1)
- git-annex-unannex(1)
- git-annex-version(1)
- git-annex-wanted(1)
- git-annex-vfilter(1)
- git-annex-list(1)
- git-annex-diffdriver(1)
- git-annex-forget(1)
- git-annex-lookupkey(1)
- git-annex-p2phttp(1)
- git-annex-config(1)
- git-annex-view(1)
- git-annex-edit(1)
- git-annex-filter-process(1)
- git-annex-repair(1)
- git-remote-tor-annex(1)
- git-annex-map(1)
- git-annex-status(1)
- git-annex-watch(1)
- git-annex-schedule(1)
- git-annex-adjust(1)
- git-annex-unregisterurl(1)
- git-remote-annex(1)
- git-annex-p2p(1)
- git-annex-reinject(1)
- git-annex-dead(1)
- git-annex-direct(1)
- git-annex-semitrust(1)
- git-annex-assist(1)
- git-annex-setkey(1)
- git-annex-push(1)
- git-annex-setpresentkey(1)
- git-annex-testremote(1)
- git-annex(1)
- git-annex-assistant(1)
- git-annex-copy(1)
- git-annex-importfeed(1)
- git-annex-vpop(1)
- git-annex-addurl(1)
- git-annex-dropkey(1)
- git-annex-updateproxy(1)
- git-annex-upgrade(1)
- git-annex-shell(1)
- git-annex-backends(1)
- git-annex-sim(1)
- git-annex-get(1)
- git-annex-benchmark(1)
- git-annex-export(1)
- git-annex-post-receive(1)
- git-annex-resolvemerge(1)
- git-annex-trust(1)
- git-annex-fsck(1)
- git-annex-transferrer(1)
- git-annex-migrate(1)
- git-annex-maxsize(1)
- git-annex-drop(1)
- git-annex-rekey(1)
- git-annex-matching-options(1)
- git-annex-calckey(1)
- git-annex-webapp(1)
- git-annex-examinekey(1)
- git-annex-inprogress(1)
- git-annex-findref(1)
- git-annex-undo(1)
- git-annex-indirect(1)
- git-annex-untrust(1)
- git-annex-extendcluster(1)
- git-annex-vcycle(1)
- git-annex-common-options(1)
- git-annex-contentlocation(1)
- git-annex-addunused(1)
- git-annex-smudge(1)
- git-annex-add(1)
- git-annex-enableremote(1)
- git-annex-uninit(1)
- git-annex-renameremote(1)
- git-annex-multicast(1)
- git-annex-import(1)
- git-annex-rmurl(1)
- git-annex-ungroup(1)
- git-annex-group(1)
- git-annex-numcopies(1)
- git-annex-sync(1)
- git-annex-describe(1)
- git-annex-configremote(1)
- git-annex-test(1)
- git-annex-transferkey(1)
- git-annex-init(1)
- git-annex-whereused(1)
- git-annex-vadd(1)
- git-annex-oldkeys(1)
- git-annex-dropunused(1)
- git-annex-log(1)
- git-annex-groupwanted(1)
- git-annex-findcomputed(1)
- git-annex-enable-tor(1)
- git-annex-addcomputed(1)
- git-annex-info(1)
- git-annex-recompute(1)
- git-annex-lock(1)
- git-annex-fuzztest(1)
- git-annex-checkpresentkey(1)
- git-annex-fromkey(1)
- git-annex-filter-branch(1)
- git-annex-unlock(1)
- git-annex-find(1)
- git-annex-reregisterurl(1)
- git-annex-required(1)
- git-annex-readpresentkey(1)
- git-annex-initcluster(1)
- git-annex-vicfg(1)
- git-annex-mincopies(1)
- git-annex-fix(1)
- git-annex-initremote(1)
- git-annex-preferred-content(1)
- git-annex-mirror(1)
- git-annex-satisfy(1)
- git-annex-pull(1)
- git-annex-move(1)
- git-annex-matching-expression(1)
- git-annex-remotedaemon(1)
- git-annex-findkeys(1)
- git-annex-updatecluster(1)
- git-annex-restage(1)
- git-annex-registerurl(1)
- git-remote-p2p-annex(1)
- git-annex-unused(1)
- git-annex-proxy(1)
- git-annex-transferkeys(1)
- git-annex-matchexpression(1)
- git-annex-expire(1)
- git-annex-pre-commit(1)
- git-annex-whereis(1)
- git-annex-reinit(1)
- git-annex-merge(1)
- git-annex-metadata(1)
- git-annex-unannex(1)
- git-annex-version(1)
- git-annex-wanted(1)
- git-annex-vfilter(1)
- git-annex-list(1)
- git-annex-diffdriver(1)
- git-annex-forget(1)
- git-annex-lookupkey(1)
- git-annex-p2phttp(1)
- git-annex-config(1)
- git-annex-view(1)
- git-annex-edit(1)
- git-annex-filter-process(1)
- git-annex-repair(1)
- git-remote-tor-annex(1)
- git-annex-map(1)
- git-annex-status(1)
- git-annex-watch(1)
- git-annex-schedule(1)
- git-annex-adjust(1)
- git-annex-unregisterurl(1)
- git-remote-annex(1)
- git-annex-p2p(1)
- git-annex-reinject(1)
- git-annex-dead(1)
- git-annex-direct(1)
- git-annex-semitrust(1)
- git-annex-assist(1)
- git-annex-setkey(1)
- git-annex-push(1)
- git-annex-setpresentkey(1)
- git-annex-testremote(1)
- git-annex(1)
- git-annex-assistant(1)
- git-annex-copy(1)
- git-annex-importfeed(1)
- git-annex-vpop(1)
- git-annex-addurl(1)
- git-annex-dropkey(1)
- git-annex-updateproxy(1)
- git-annex-upgrade(1)
- git-annex-shell(1)
- git-annex-backends(1)
- git-annex-sim(1)
- git-annex-get(1)
- git-annex-benchmark(1)
- git-annex-export(1)
- git-annex-post-receive(1)
- git-annex-resolvemerge(1)
- git-annex-trust(1)
- git-annex-fsck(1)
- git-annex-transferrer(1)
- git-annex-migrate(1)
- git-annex-maxsize(1)
- git-annex-drop(1)
- git-annex-rekey(1)
- git-annex-matching-options(1)
- git-annex-calckey(1)
- git-annex-webapp(1)
- git-annex-examinekey(1)
- git-annex-inprogress(1)
- git-annex-findref(1)
- git-annex-undo(1)
- git-annex-indirect(1)
- git-annex-untrust(1)
- git-annex-extendcluster(1)
- git-annex-vcycle(1)
- git-annex-common-options(1)
- git-annex-contentlocation(1)
- git-annex-addunused(1)
- git-annex-smudge(1)
- git-annex-add(1)
- git-annex-enableremote(1)
- git-annex-uninit(1)
- git-annex-renameremote(1)
- git-annex-multicast(1)
- git-annex-import(1)
- git-annex-rmurl(1)
- git-annex-ungroup(1)
- git-annex-group(1)
- git-annex-numcopies(1)
- git-annex-sync(1)
- git-annex-describe(1)
- git-annex-configremote(1)
- git-annex-test(1)
- git-annex-transferkey(1)
- git-annex-init(1)
- git-annex-whereused(1)
- git-annex-vadd(1)
- git-annex-oldkeys(1)
Package: git-annex
apt-get install git-annex
apt-get install git-annex
Manuals in package:
Documentations in package:
Package: git-annex-standalone
apt-get install git-annex-standalone
apt-get install git-annex-standalone
Manuals in package:
Documentations in package:
Manual
| git-annex-matchexpression(1) | General Commands Manual | git-annex-matchexpression(1) |
NAME
git-annex-matchexpression - checks if an expression matches
SYNOPSIS
git annex matchexpression expression [data]
DESCRIPTION
This plumbing-level command is given a preferred content expression, and some data, and checks if the expression matches the data. It exits 0 if it matches, and 1 if not. If not enough data was provided, it displays an error and exits with special code 42.
For example, this will exit 0:
git annex matchexpression "include=*.png and largerthan=1mb"
--file=foo.png --size=10mb
OPTIONS
- --file=
- Provide the filename to match against. Note that the file does not have to actually exist on disk.
- --size=
- Tell what the size of the file is. The size can be specified with any commonly used units, for example, "0.5 gb" or "100 KiloBytes".
- --key=
- Tell what key is being matched against. This is needed for matching expressions like "copies=N" and "metadata=tag=foo" and "present", which all need to look up the information on file for a key.
- Many keys have a known size, and so --size is not needed when specifying such a key.
- --largefiles
- Parse the expression as an annex.largefiles expression, rather than a preferred content expression.
- --mimetype=
- Tell what the mime type of the file is. Only needed when using --largefiles with a mimetype= expression.
- --mimeencoding=
- Tell what the mime encoding of the file is. Only needed when using --largefiles with a mimeencoding= expression.
- --explain
- Display explanation of what parts of the preferred content expression match, and which parts don't match.
- Also the git-annex-common-options(1) can be used.
SEE ALSO
git-annex(1)
git-annex-preferred-content(1)
git-annex-matching-expression(1)
git-annex-sim(1)
AUTHOR
Joey Hess <id@joeyh.name>