From 6de110d3dd38e0f59f382c000c5245114ed4068d Mon Sep 17 00:00:00 2001 From: bremner Date: Wed, 5 Sep 2012 02:09:28 +0000 Subject: This reverts commit 57a71adc21ab7de4bf55bb6044abd6bc2a014233 --- doc/tips/finding_duplicate_files.mdwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/tips') diff --git a/doc/tips/finding_duplicate_files.mdwn b/doc/tips/finding_duplicate_files.mdwn index a68fa9058..94fc85400 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='${escaped_file} ${escaped_key}\n' | \ + git annex find --include '*' --format='${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='${escaped_file} ${escaped_key}\n' | \ + git annex find --include '*' --format='${file} ${escaped_key}\n' | \ sort -k2 | uniq --repeated -f1 | sed 's/ [^ ]*$//' | \ xargs -d '\n' git rm -- cgit v1.2.3