summaryrefslogtreecommitdiff
path: root/doc/forum/Adding_files_with_wildcard_on_Mac_Yosemite/comment_8_a2b10366426158bcb6c91df6c2e843b7._comment
blob: c57fbaf047db858d081d4d9442529c08c437fce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[[!comment format=mdwn
 username="clacke"
 subject="comment 8"
 date="2015-04-22T13:16:01Z"
 content="""
This is a bit more readable, even avoids the commas and casing of the original line I was using:

[[!format sh \"\"\"
$ find . -name .git -prune -o -print0 | grep -izZ -f <(printf '\.%s\n' jp{,e}g avi mov 3gp mp4 tif pdf doc pps bmp png mp{,e}g wav nef thm key.gz ogg ppt gif m4a) - | xargs -0 git annex add
\"\"\"]]

(`ggrep` necessary on OSX)

"""]]