Skip to content

Commit

Permalink
doc/man: Replace old style of using the sh formatter in examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
sahib committed Mar 6, 2016
1 parent 4244fbb commit fa87def
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/rmlint.1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,9 @@ FORMATTERS

Default is ``remove``.

* *link*: Shortcut for ``-c sh:clone,reflink,hardlink,symlink``.
* *hardlink*: Shortcut for ``-c sh:hardlink,symlink``.
* *symlink*: Shortcut for ``-c sh:symlink``.
* *link*: Shortcut for ``-c sh:handler=clone,reflink,hardlink,symlink``.
* *hardlink*: Shortcut for ``-c sh:handler=hardlink,symlink``.
* *symlink*: Shortcut for ``-c sh:handler=symlink``.

* ``json``: Print a JSON-formatted dump of all found reports.
Outputs all finds as a json document. The document is a list of dictionaries,
Expand Down Expand Up @@ -613,7 +613,7 @@ This is a collection of common usecases and other tricks:

* Inject user-defined command into shell script output:

``$ ./rmlint -o sh -c sh:cmd='echo "original:" "$2" "is the same as" "$1"'``
``$ rmlint -o sh -c sh:cmd='echo "original:" "$2" "is the same as" "$1"'``

* Use *data* as master directory. Find **only** duplicates in *backup* that are
also in *data*. Do not delete any files in *data*:
Expand Down

0 comments on commit fa87def

Please sign in to comment.