git-annex-find(1)
π git-annex-find(1) π
okay bestie, welcome to git-annex-find β part of the General Commands Manual, and honestly? it's giving "let me just show you what you've got" β¨
πΈ NAME πΈ
git-annex-find β lists available files π¦
β¨ SYNOPSIS β¨
git annex find [path ...]
π DESCRIPTION π
So basically it spits out a list of annexed files in whatever path you point it at π And if you give it no path at all? It just goes feral in the current directory and all its subdirectories, hunting them all down for you. no cap.
π OPTIONS π
matching options π§
The git-annex-matching-options(1) can be used to specify which files to list. iykyk.
By default, the find command only lists annexed files whose content is currently present. Specifying any of the matching options will override this default behavior β so heads up, that default vibe check goes out the window.
To list all annexed files, present or not, specify --anything.
To list annexed files whose content is not present, specify --not --in=here
Other options π
--branch=refβ List files in the specified branch or treeish. lowkey so useful π--print0β Output filenames terminated with nulls, for use withxargs -0--format=valueβ Use custom output formatting. main character energy, honestly.
The value is a format string, in which '${var}' is expanded to the value of a variable. To right-justify a variable with whitespace, use '${var;width}' ; to left-justify a variable, use '${var;-width}'; to escape unusual characters (including control characters) in a variable, use '${escaped_var}'
These variables are available for use in formats: file, key, backend, bytesize, humansize, keyname, hashdirlower, hashdirmixed, mtime (for the mtime field of a WORM key). π«Ά
Also, '\n' is a newline, '\000' is a NULL, etc.
The default output format is the same as --format='${file}\n', except when outputting to a terminal, control characters will be escaped. π
--jsonβ Output the list of files in JSON format. π¦
This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object. fr fr.
--json-error-messagesβ Messages that would normally be output to standard error are included in the JSON instead. not me redirecting my feelings into JSON π--batchβ Enables batch mode, in which a file is read in a line from stdin, its information displayed, and repeat. π
Note that if the file is not an annexed file, or is not present, or otherwise doesn't meet the matching options, an empty line will be output instead. π
-zβ Makes the--batchinput be delimited by nulls instead of the usual newlines. slay π
Also the git-annex-common-options(1) can be used. π
π₯ SEE ALSO π₯
π AUTHOR π
Joey Hess <id@joeyh.name> π
okay that's the whole page bestie, and yes the manual header said git-annex-find(1) and the footer signed off with git-annex-find(1) again because the page simply could not stop being iconic π
β¨ bye ily, go list some files ππ¦
π¦ where this page comes from
- alpine 3.24: git-annex-doc 10.20261026-r0 Β· AGPL-3.0-or-later
- arch rolling: git-annex 10.20261026-2 Β· AGPL-3.0-only
- debian trixie: git-annex 10.20250416-2 Β· AGPL-3.0-or-later
- debian trixie: git-annex 10.20250416-2+deb13u1 Β· AGPL-3.0-or-later
- epel 10: git-annex 10.20250320-1.el10_0 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250630-4.fc43 Β· AGPL-3.0-or-later
- fedora 43: git-annex 10.20250929-5.fc43 Β· AGPL-3.0-or-later
- fedora 44: git-annex 10.20260115-1.fc44 Β· AGPL-3.0-or-later
- nixos 26.05: git-annex 10.20260421
- nixpkgs unstable: git-annex 10.20260421
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- opensuse-leap 16.0: git-annex 10.20250828-bp160.1.1 Β· AGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT AND GPL-2.0-only
- ubuntu noble: git-annex 10.20240129-1build1 Β· AGPL-3.0-or-later
- ubuntu questing: git-annex 10.20250721-1
- ubuntu resolute: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- ubuntu stonking: git-annex 10.20251029-1ubuntu1 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms