Moved the simplest example to the top.

This commit is contained in:
Camilla Berglund
2012-01-18 19:37:53 +01:00
parent 56c534121e
commit f7bcddf07c
+5 -5
View File
@@ -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.