]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement the following options and primaries:
authorAkinori MUSHA <knu@FreeBSD.org>
Fri, 23 Feb 2001 16:20:55 +0000 (16:20 +0000)
committerAkinori MUSHA <knu@FreeBSD.org>
Fri, 23 Feb 2001 16:20:55 +0000 (16:20 +0000)
commit7c1d4b3ae901ee2c7a3537b10db787464fb26df0
tree123372b84824bb4bb878c81826433c31396087f8
parent0a3a912634b2fdacdca2e1341a5ee2c6b29969c7
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
usr.bin/find/extern.h
usr.bin/find/find.1
usr.bin/find/find.c
usr.bin/find/find.h
usr.bin/find/function.c
usr.bin/find/main.c
usr.bin/find/option.c