From dff998515d9469572147d445213cad08f12e4cb6 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 30 Jun 2010 08:07:01 +0200 Subject: [PATCH] Added an example in the man page and changed the help for the -m option. --- dus.1 | 11 ++++++++++- dus.c | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dus.1 b/dus.1 index 7df68b9..394f722 100644 --- 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\fR, \fB--min-size \fI\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" diff --git a/dus.c b/dus.c index 6557c7f..5f481d7 100644 --- 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-min \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 .\n"); } -- 2.39.5