Cosmetics.
[finddup.git] / finddup.1
1 .TH "FINDDUP" 1 "Mar 2010" "Francois Fleuret" "User Commands"
2
3 \" This man page was written by Francois Fleuret <francois@fleuret.org>
4 \" and is distributed under a Creative Commons Attribution-Share Alike
5 \" 3.0 License.
6
7 .SH "NAME"
8
9 finddup \- Find files common to two directories (or not)
10
11 .SH "SYNOPSIS"
12
13 \fBfinddup\fP [OPTION]... DIR1 [[not:]DIR2]
14
15 .SH "DESCRIPTION"
16
17 With a single directory argument, \fBfinddup\fP prints the duplicated
18 files found in it. With two directories, it prints either the files
19 common to both DIR1 and DIR2, or with the `not:' prefix, the ones
20 present in DIR1 and not in DIR2.
21
22 .SH "OPTIONS"
23 .TP
24 \fB-h\fR
25 display help and exit
26 .TP
27 \fB-d\fR
28 ignore files and directories starting with a dot
29 .TP
30 \fB-c\fR
31 do not show which files from DIR2 corresponds to files from DIR1
32 .TP
33 \fB-g\fR
34 show the file group IDs (one group for each content)
35 .TP
36 \fB-r\fR
37 shows the real path of the files
38
39 .SH "BUGS"
40
41 The display is not sorted by groups.
42
43 .SH "EXAMPLES"
44 .nf
45 .B finddup -c blah something
46
47 .fi
48 List files found in
49 .B ./blah/
50 which have a matching file with exact same content in
51 .B ./something/
52
53 .P
54 .B finddup ./sources not:./backup
55
56 .fi
57 List all files found in
58 .B ./sources/
59 which do not have content-matching equivalent in
60 .B ./backup.sources
61
62 .P
63 .B finddup -g ./tralala ./cuicui | sort -n
64
65 .fi
66 List groups of files with same content which exist both in
67 .B ./tralala/
68 and
69 .B ./cuicui/
70
71 .SH "AUTHOR"
72
73 Written by Francois Fleuret <francois@fleuret.org> and distributed
74 under the terms of the GNU General Public License version 3 as
75 published by the Free Software Foundation. This is free software: you
76 are free to change and redistribute it. There is NO WARRANTY, to the
77 extent permitted by law.