Date: Fri, 23 Feb 2001 08:20:55 -0800 (PST) From: Akinori MUSHA <knu@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/find extern.h find.1 find.c find.h function.c main.c option.c Message-ID: <200102231620.f1NGKtu01150@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
knu 2001/02/23 08:20:55 PST
Modified files:
usr.bin/find extern.h find.1 find.c find.h function.c
main.c option.c
Log:
Implement the following options and primaries:
-E Interpret regular expressions followed by -regex and -iregex op-
tions as extended (modern) regular expressions rather than basic
regular expressions (BRE's). The re_format(7) manual page fully
describes both formats.
-iname pattern
Like -name, but the match is case insensitive.
-ipath pattern
Like -path, but the match is case insensitive.
-regex pattern
True if the whole path of the file matches pattern using regular
expression. To match a file named ``./foo/xyzzy'', you can use
the regular expression ``.*/[xyz]*'' or ``.*/foo/.*'', but not
``xyzzy'' or ``/foo/''.
-iregex pattern
Like -regex, but the match is case insensitive.
These are meant to be compatible with other find(1) implementations
such as GNU's or NetBSD's except regexp library differences.
Reviewed by: sobomax, dcs, and some other people on -current
Revision Changes Path
1.12 +6 -1 src/usr.bin/find/extern.h
1.32 +41 -3 src/usr.bin/find/find.1
1.9 +2 -1 src/usr.bin/find/find.c
1.10 +7 -3 src/usr.bin/find/find.h
1.29 +156 -2 src/usr.bin/find/function.c
1.11 +8 -3 src/usr.bin/find/main.c
1.12 +6 -1 src/usr.bin/find/option.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102231620.f1NGKtu01150>
