summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/find.1
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2006-05-27 18:27:41 +0000
committerkrion <krion@FreeBSD.org>2006-05-27 18:27:41 +0000
commit6b57f065966c0f0801af6e04177d20713f95edbb (patch)
treec4698faa54e7449c66dfcad1a14420aa18cbe3b9 /usr.bin/find/find.1
parentefa20627226a6768196d5119eb965ff8d6cdfbe3 (diff)
downloadFreeBSD-src-6b57f065966c0f0801af6e04177d20713f95edbb.zip
FreeBSD-src-6b57f065966c0f0801af6e04177d20713f95edbb.tar.gz
Add the capability for a trailing scale indicator to cause the
specified size to be read in the more familiar units of kilobytes, megabytes, gigabytes, terabytes and petabytes. PR: bin/50988 Submitted by: Matthew Seaman <m.seaman@infracaninophile.co.uk> MFC after: 7 days
Diffstat (limited to 'usr.bin/find/find.1')
-rw-r--r--usr.bin/find/find.123
1 files changed, 21 insertions, 2 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1
index dd390e9..4af3eea 100644
--- a/usr.bin/find/find.1
+++ b/usr.bin/find/find.1
@@ -35,7 +35,7 @@
.\" @(#)find.1 8.7 (Berkeley) 5/9/95
.\" $FreeBSD$
.\"
-.Dd April 4, 2006
+.Dd May 27, 2006
.Dt FIND 1
.Os
.Sh NAME
@@ -681,7 +681,7 @@ but not
.Dq Li xyzzy
or
.Dq Li /foo/ .
-.It Ic -size Ar n Ns Op Cm c
+.It Ic -size Ar n Ns Op Cm ckMGTP
True if the file's size, rounded up, in 512-byte blocks is
.Ar n .
If
@@ -692,6 +692,25 @@ then the primary is true if the
file's size is
.Ar n
bytes (characters).
+Similarly if
+.Ar n
+is followed by a scale indicator then the file's size is compared to
+.Ar n
+scaled as:
+.Pp
+.Bl -tag -width indent -compact
+.It Cm k
+kilobytes (1024 bytes)
+.It Cm M
+megabytes (1024 kilobytes)
+.It Cm G
+gigabytes (1024 megabytes)
+.It Cm T
+terabytes (1024 gigabytes)
+.It Cm P
+petabytes (1024 terabytes)
+.El
+.Pp
.It Ic -type Ar t
True if the file is of the specified type.
Possible file types are as follows:
OpenPOWER on IntegriCloud