mirror of
https://github.com/elmindreda/duff.git
synced 2026-05-28 00:21:10 +02:00
Moved the simplest example to the top.
This commit is contained in:
+5
-5
@@ -159,17 +159,17 @@ This option suppresses reporting a cluster of empty files.
|
||||
.Sh EXAMPLES
|
||||
.\" TODO: Fix the formatting of the example commands.
|
||||
The command:
|
||||
.Dl duff -r foo/
|
||||
.Pp
|
||||
lists all duplicate files in the directory foo and its subdirectories.
|
||||
.Pp
|
||||
The command:
|
||||
.Dl duff -e0 * \&| xargs -0 rm
|
||||
.Pp
|
||||
removes all duplicate files in the current directory.
|
||||
Note that it's usually a good idea to check what will be removed before running a command like the one above.
|
||||
.Pp
|
||||
The command:
|
||||
.Dl duff -r foo/
|
||||
.Pp
|
||||
lists all duplicate files in the directory foo and its subdirectories.
|
||||
.Pp
|
||||
The command:
|
||||
.Dl find \&. -name '*.h' -print0 \&| duff -0 | xargs -0 -n1 echo
|
||||
.Pp
|
||||
lists all duplicate header files in the current directory and its subdirectories, correctly handling file names containing whitespace.
|
||||
|
||||
Reference in New Issue
Block a user