diff options
author | roberto <roberto@FreeBSD.org> | 2000-06-12 11:12:41 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2000-06-12 11:12:41 +0000 |
commit | c88f0b2a324fd8037931b79f16e210f404280271 (patch) | |
tree | 0bc4fc0ea4650f72cd168363e297c8434da1874e /usr.bin/find/option.c | |
parent | 4700b95df2b7132536328b616ed11b6fb0f06812 (diff) | |
download | FreeBSD-src-c88f0b2a324fd8037931b79f16e210f404280271.zip FreeBSD-src-c88f0b2a324fd8037931b79f16e210f404280271.tar.gz |
This patch adds the -mindepth and -maxdepth options to find(1), which
behave as in GNU find (and of course as described in the manual page
diff included). I think these options would be useful for some people.
Some missing $FreeBSD$ tags are also added.
The patch was slightly modified (send-pr mangling of TABS).
PR: bin/18941
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
Diffstat (limited to 'usr.bin/find/option.c')
-rw-r--r-- | usr.bin/find/option.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/find/option.c b/usr.bin/find/option.c index b1ebd45..6ae15d3 100644 --- a/usr.bin/find/option.c +++ b/usr.bin/find/option.c @@ -84,6 +84,8 @@ static OPTION const options[] = { { "-inum", N_INUM, c_inum, O_ARGV }, { "-links", N_LINKS, c_links, O_ARGV }, { "-ls", N_LS, c_ls, O_ZERO }, + { "-maxdepth", N_MAXDEPTH, c_maxdepth, O_ARGV }, + { "-mindepth", N_MINDEPTH, c_mindepth, O_ARGV }, { "-mmin", N_MMIN, c_mmin, O_ARGV }, { "-mtime", N_MTIME, c_mtime, O_ARGV }, { "-name", N_NAME, c_name, O_ARGV }, |