diff options
author | Peter Wemm <peter@FreeBSD.org> | 2001-01-23 11:16:50 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2001-01-23 11:16:50 +0000 |
commit | ed1a4621a2ae51371c8e4f181fcb4cdf80d92104 (patch) | |
tree | 5cf799f4f6f8df5445120bd62639abc253a64267 /usr.bin/find/find.1 | |
parent | 3b9d81dc1acaa3ede3af5a9993b1ee5b2a6cf347 (diff) | |
download | src-ed1a4621a2ae51371c8e4f181fcb4cdf80d92104.tar.gz src-ed1a4621a2ae51371c8e4f181fcb4cdf80d92104.zip |
Add the -empty flag, from OpenBSD. It returns true if the directory
is empty. There doesn't appear to be another easy way to do this.
mobile# mkdir foo
mobile# mkdir foo/bar
mobile# mkdir bar
mobile# find . -empty
./foo/bar
./bar
Notes
Notes:
svn path=/head/; revision=71422
Diffstat (limited to 'usr.bin/find/find.1')
-rw-r--r-- | usr.bin/find/find.1 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index 44338fadb437..78ddcf5312e9 100644 --- a/usr.bin/find/find.1 +++ b/usr.bin/find/find.1 @@ -181,6 +181,8 @@ recurses down the tree. It will not attempt to delete a filename with a ``/'' character in its pathname relative to "." for security reasons. Depth\-first traversal processing is implied by this option. +.It Ic -empty +True if the current file or directory is empty. .It Ic -exec Ar utility Op argument ... ; True if the program named .Ar utility |