summaryrefslogtreecommitdiffstats
path: root/bin/ls/util.c
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-12-28 20:50:12 +0000
committerjoe <joe@FreeBSD.org>2001-12-28 20:50:12 +0000
commitdfee532b860ae8392d001e56b14faf954a365fb8 (patch)
tree95cb44773e27fe8bfcef9a8f79767b90422dc3d9 /bin/ls/util.c
parentdde2b7683ece45d306f0d20e281e8ee844196689 (diff)
downloadFreeBSD-src-dfee532b860ae8392d001e56b14faf954a365fb8.zip
FreeBSD-src-dfee532b860ae8392d001e56b14faf954a365fb8.tar.gz
Add a new flag, -h which when combined with the -l option causes
file sizes to be displayed with unit suffixes; Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the number of digits to three or less. Submitted by: nik
Diffstat (limited to 'bin/ls/util.c')
-rw-r--r--bin/ls/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c
index 84d106e..668d8e4 100644
--- a/bin/ls/util.c
+++ b/bin/ls/util.c
@@ -162,9 +162,9 @@ usage()
{
(void)fprintf(stderr,
#ifdef COLORLS
- "usage: ls [-ABCFGHLPRTWZabcdfgiklnoqrstu1]"
+ "usage: ls [-ABCFGHLPRTWZabcdfghiklnoqrstu1]"
#else
- "usage: ls [-ABCFHLPRTWZabcdfgiklnoqrstu1]"
+ "usage: ls [-ABCFHLPRTWZabcdfghiklnoqrstu1]"
#endif
" [file ...]\n");
exit(1);
OpenPOWER on IntegriCloud