File: comment_6_a6e88c93b31f67c933523725ff61b287._comment

package info (click to toggle)
git-annex 5.20141125%2Bdeb8u1
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 37,832 kB
  • sloc: haskell: 42,603; sh: 1,080; ansic: 498; makefile: 316; perl: 125
file content (16 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[[!comment format=mdwn
 username="https://www.google.com/accounts/o8/id?id=AItOawnkBYpLu_NOj7Uq0-acvLgWhxF8AUEIJbo"
 nickname="Chris"
 subject="Find files by key"
 date="2013-05-03T04:14:55Z"
 content="""
Is there any simple way to search for files with a given key?

At the moment, the best I've come up with is this:

````
git annex find --include '*' --format='${key} ${file}' | grep <KEY>
````

where `<KEY>` is the key. This seems like an awfully longwinded approach, but I don't see anything in the docs indicating a simpler way to do it. Am I missing something?
"""]]