-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathepac.1
106 lines (106 loc) · 4.56 KB
/
epac.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
.\" *****************************************************************************
.\" * Erik's Partial Archive Collator *
.\" * Copyright (C) 2002-2010 Erik Greenwald <[email protected]> *
.\" * *
.\" * This program takes a directory as an argument, then walks through the *
.\" * directory looking for duplicate and partially duplicate files. If it *
.\" * an exact duplicate, it deletes one and creates a hardlink to the other, *
.\" * minimizing disk usage. If it finds a pair of files where they contain the *
.\" * same data up to the size of the smaller file, it will prompt if you want *
.\" * to combine them. If you say yes, it will delete the smaller of the files *
.\" * and hardlink to the larger. *
.\" * *
.\" * This program is free software; you can redistribute it and/or modify *
.\" * it under the terms of the GNU General Public License as published by *
.\" * the Free Software Foundation; either version 2 of the License, or *
.\" * (at your option) any later version. *
.\" * *
.\" * This program is distributed in the hope that it will be useful, *
.\" * but WITHOUT ANY WARRANTY; without even the implied warranty of *
.\" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
.\" * GNU General Public License for more details. *
.\" * *
.\" * You should have received a copy of the GNU General Public License *
.\" * along with this program; if not, write to the Free Software *
.\" * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
.\" *****************************************************************************
.\" epac.1 man page for epac
.\" http://math.missouristate.edu/~erik/software.php?id=92
.\" $Id: epac.1,v 1.7 2010/01/06 01:06:53 erik Exp $
.\"===========================================================================
.Dd August 5, 2002
.Dt EPAC 1
.\"===========================================================================
.Sh NAME
.Nm EPAC
.Nd Reduce (partially) identical files to a single inode.
.\"===========================================================================
.Sh SYNOPSIS
.B epac
.\".Op Fl Crsvh
.Op Fl Cvh
.Op Fl W|--width Ar width
.Op Fl y|n
.Ar dir1
.Op Ar dir2...
.\"===========================================================================
.Sh DESCRIPTION
Erik's Partial Archive Collator takes a directory as an argument, then walks
through it looking for duplicate and partially duplicate files. If it finds
exact duplicates, it deletes one and creates a hard link to the other,
minimizing disk usage. If it finds a pair of files where the larger file
contains the entire contents of the smaller file, it will prompts to combine
them and create a hard link.
.Pp
.\"===========================================================================
.Sh OPTIONS
.Bl -tag -width
.It Op Fl C
Verbose
.\".It Op Fl s
.\"show only, don't collapse
.\".It Op Fl r
.\"Operate recursively
.It Op Fl w|--width Ar width
Force the screen width for the progress bar.
.It Op Fl y
Assume yes to prompted actions (partial matches).
.It Op Fl n
Assume no to prompted actions.
.It Op Fl v
Show version and exit.
.It Op Fl h
Show help and exit.
.El
.\"===========================================================================
.Sh DIAGNOSTICS
.Nm
returns 0 on success and non-zero on failure. The help (-h) and version (-v)
flags return 0. Operational errors return a negative value and interface
(human) errors return a positive value.
.Pp
.Bl -tag -width 4n -offset indent -compact
.It Sy -1
malloc or read error
.It Sy 0
Success, -v, or -h
.It Sy 1
poorly defined option (missing mandatory argument, etc) or -?
.It Sy 2
unknown option
.El
.Pp
.\"===========================================================================
.Sh SEE ALSO
.Xr ln 1 ,
.Xr link 3
.\"===========================================================================
.Sh BUGS
Other than a crappy manpage,
.Nm
has no known bugs. Please report any to
.An <[email protected]>
.\"===========================================================================
.Sh AUTHOR
.An Erik Greenwald <[email protected]> <[email protected]>
http://math.smsu.edu/~erik/software.php?id=92