projects
/
dus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dd928a1
)
Added an example in the man page and changed the help for the -m option.
author
Francois Fleuret
<francois@fleuret.org>
Wed, 30 Jun 2010 06:07:01 +0000
(08:07 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Wed, 30 Jun 2010 06:07:01 +0000
(08:07 +0200)
dus.1
patch
|
blob
|
history
dus.c
patch
|
blob
|
history
diff --git
a/dus.1
b/dus.1
index
7df68b9
..
394f722
100644
(file)
--- a/
dus.1
+++ b/
dus.1
@@
-47,7
+47,16
@@
same as \fB-c\fR but for the number of lines
.TP
\fB-m \fI<size min>\fR, \fB--min-size \fI<size min>\fR
restrict the printing of files and directories to these of size bigger
.TP
\fB-m \fI<size min>\fR, \fB--min-size \fI<size min>\fR
restrict the printing of files and directories to these of size bigger
-than a lower bound
+than a lower bound. The size can be specified using the G, M, K, and B
+units
+
+.SH "EXAMPLE"
+
+.B dus -m 1M -rt ~/private/
+
+.fi
+List the largest files and directories present in ~/private/, of sizes
+greater than 1024kb, sorted in decreasing order.
.SH "BUGS"
.SH "BUGS"
diff --git
a/dus.c
b/dus.c
index
6557c7f
..
5f481d7
100644
(file)
--- a/
dus.c
+++ b/
dus.c
@@
-385,7
+385,8
@@
void usage(FILE *out) {
fprintf(out, " same as -c for number of lines.\n");
fprintf(out, " -h, --help show this help.\n");
fprintf(out, " -m <size>, --size-min <size>\n");
fprintf(out, " same as -c for number of lines.\n");
fprintf(out, " -h, --help show this help.\n");
fprintf(out, " -m <size>, --size-min <size>\n");
- fprintf(out, " set the listed entries minimum size.\n");
+ fprintf(out, " set the listed entries minimum size. The size\n");
+ fprintf(out, " can be specified using the G, M, K, and B units.\n");
fprintf(out, "\n");
fprintf(out, "Report bugs and comments to <francois@fleuret.org>.\n");
}
fprintf(out, "\n");
fprintf(out, "Report bugs and comments to <francois@fleuret.org>.\n");
}