Skip to content

Commit 2e96387

Browse files
committed
Merge branch 'vassilit-docs-patch-1' into master
2 parents b6c5be3 + 4b61381 commit 2e96387

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tutorial.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ that can be easily solved with some other tools.
858858
Copying unique files
859859
~~~~~~~~~~~~~~~~~~~~
860860

861-
Imagine you have a folder from which you want to extract one copy of each file
861+
Imagine you have a directory from which you want to extract one copy of each file
862862
by content. This does not only mean unique files, but also original files - but
863863
not their duplicates. This sounds like a job for the ``uniques`` formatter
864864
(which outputs all unique paths, one by line) and ``jq``. ``jq`` is a great
@@ -872,7 +872,7 @@ little `tool`_ which makes it really easy to extract data from a ``json`` file:
872872
# - unique_files: Files that have a unique checksum in the directory.
873873
# - original_files: Files that have the "is_original" field set to true in the json output.
874874
# The '.[1:-1]' part is for filtering the header and footer part of the json response.
875-
$ rmlint t -o json -o uniques:unique_files | jq -r '.[1:-1][] | select(.is_original) | .path' | sort > original_files
875+
$ rmlint dir/ -o json -o uniques:unique_files | jq -r '.[1:-1][] | select(.is_original) | .path' | sort > original_files
876876
# Now we only need to combine both files:
877877
$ cat unique_files original_files
878878

0 commit comments

Comments
 (0)