summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bremner <bremner@web>2012-09-05 02:05:38 +0000
committerGravatar admin <admin@branchable.com>2012-09-05 02:05:38 +0000
commit57a71adc21ab7de4bf55bb6044abd6bc2a014233 (patch)
tree4a3d811b07a9afec0ffdde420ec977e017f36932
parentd13b1c6dbe16a033ac22e38ff3db0a320371e91c (diff)
use escaped_file instead of file to avoid spaces in filenames throwing off the sorting.
-rw-r--r--doc/tips/finding_duplicate_files.mdwn4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tips/finding_duplicate_files.mdwn b/doc/tips/finding_duplicate_files.mdwn
index 94fc85400..a68fa9058 100644
--- a/doc/tips/finding_duplicate_files.mdwn
+++ b/doc/tips/finding_duplicate_files.mdwn
@@ -8,13 +8,13 @@ the duplicate files.
Here's a command line that will show duplicate sets of files grouped together:
- git annex find --include '*' --format='${file} ${escaped_key}\n' | \
+ git annex find --include '*' --format='${escaped_file} ${escaped_key}\n' | \
sort -k2 | uniq --all-repeated=separate -f1 | \
sed 's/ [^ ]*$//'
Here's a command line that will remove one of each duplicate set of files:
- git annex find --include '*' --format='${file} ${escaped_key}\n' | \
+ git annex find --include '*' --format='${escaped_file} ${escaped_key}\n' | \
sort -k2 | uniq --repeated -f1 | sed 's/ [^ ]*$//' | \
xargs -d '\n' git rm