xref: /freebsd/usr.bin/find/find.1 (revision 7fd5ee41e3fc0035fa23ee3022cd53fa8cb0c53d)
19b50d902SRodney W. Grimes.\"	The Regents of the University of California.  All rights reserved.
29b50d902SRodney W. Grimes.\"
39b50d902SRodney W. Grimes.\" This code is derived from software contributed to Berkeley by
49b50d902SRodney W. Grimes.\" the Institute of Electrical and Electronics Engineers, Inc.
59b50d902SRodney W. Grimes.\"
69b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without
79b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions
89b50d902SRodney W. Grimes.\" are met:
99b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright
109b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer.
119b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright
129b50d902SRodney W. Grimes.\"    notice, this list of conditions and the following disclaimer in the
139b50d902SRodney W. Grimes.\"    documentation and/or other materials provided with the distribution.
149b50d902SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software
159b50d902SRodney W. Grimes.\"    must display the following acknowledgement:
169b50d902SRodney W. Grimes.\"	This product includes software developed by the University of
179b50d902SRodney W. Grimes.\"	California, Berkeley and its contributors.
189b50d902SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors
199b50d902SRodney W. Grimes.\"    may be used to endorse or promote products derived from this software
209b50d902SRodney W. Grimes.\"    without specific prior written permission.
219b50d902SRodney W. Grimes.\"
229b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
239b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
249b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
259b50d902SRodney W. Grimes.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
269b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
279b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
289b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
299b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
309b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
319b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
329b50d902SRodney W. Grimes.\" SUCH DAMAGE.
339b50d902SRodney W. Grimes.\"
34841484cdSPeter Wemm.\"	@(#)find.1	8.7 (Berkeley) 5/9/95
35c3aac50fSPeter Wemm.\" $FreeBSD$
369b50d902SRodney W. Grimes.\"
37bfd12208SRuslan Ermilov.Dd May 3, 2001
389b50d902SRodney W. Grimes.Dt FIND 1
399b50d902SRodney W. Grimes.Os
409b50d902SRodney W. Grimes.Sh NAME
419b50d902SRodney W. Grimes.Nm find
429b50d902SRodney W. Grimes.Nd walk a file hierarchy
439b50d902SRodney W. Grimes.Sh SYNOPSIS
448fe908efSRuslan Ermilov.Nm
459b50d902SRodney W. Grimes.Op Fl H | Fl L | Fl P
467c1d4b3aSAkinori MUSHA.Op Fl EXdsx
470c101fb2SJoseph Koshy.Op Fl f Ar pathname
48bfd12208SRuslan Ermilov.Op Ar pathname ...
499b50d902SRodney W. Grimes.Ar expression
509b50d902SRodney W. Grimes.Sh DESCRIPTION
519b50d902SRodney W. Grimes.Nm Find
529b50d902SRodney W. Grimesrecursively descends the directory tree for each
530c101fb2SJoseph Koshy.Ar pathname
549b50d902SRodney W. Grimeslisted, evaluating an
559b50d902SRodney W. Grimes.Ar expression
56bfd12208SRuslan Ermilov(composed of the
57bfd12208SRuslan Ermilov.Dq primaries
58bfd12208SRuslan Ermilovand
59bfd12208SRuslan Ermilov.Dq operands
60bfd12208SRuslan Ermilovlisted below) in terms
619b50d902SRodney W. Grimesof each file in the tree.
629b50d902SRodney W. Grimes.Pp
639b50d902SRodney W. GrimesThe options are as follows:
64bfd12208SRuslan Ermilov.Bl -tag -width indent
657c1d4b3aSAkinori MUSHA.It Fl E
667c1d4b3aSAkinori MUSHAInterpret regular expressions followed by
677c1d4b3aSAkinori MUSHA.Ic -regex
687c1d4b3aSAkinori MUSHAand
697c1d4b3aSAkinori MUSHA.Ic -iregex
707c1d4b3aSAkinori MUSHAoptions as extended (modern) regular expressions rather than basic
71bfd12208SRuslan Ermilovregular expressions (BRE's).
72bfd12208SRuslan ErmilovThe
737c1d4b3aSAkinori MUSHA.Xr re_format 7
747c1d4b3aSAkinori MUSHAmanual page fully describes both formats.
759b50d902SRodney W. Grimes.It Fl H
769b50d902SRodney W. GrimesThe
779b50d902SRodney W. Grimes.Fl H
789b50d902SRodney W. Grimesoption causes the file information and file type (see
799b50d902SRodney W. Grimes.Xr stat 2 )
809b50d902SRodney W. Grimesreturned for each symbolic link specified on the command line to be
819b50d902SRodney W. Grimesthose of the file referenced by the link, not the link itself.
829b50d902SRodney W. GrimesIf the referenced file does not exist, the file information and type will
836df69548SBruce Evansbe for the link itself.
846df69548SBruce EvansFile information of all symbolic links not on
859b50d902SRodney W. Grimesthe command line is that of the link itself.
869b50d902SRodney W. Grimes.It Fl L
879b50d902SRodney W. GrimesThe
889b50d902SRodney W. Grimes.Fl L
899b50d902SRodney W. Grimesoption causes the file information and file type (see
909b50d902SRodney W. Grimes.Xr stat 2 )
919b50d902SRodney W. Grimesreturned for each symbolic link to be those of the file referenced by the
929b50d902SRodney W. Grimeslink, not the link itself.
939b50d902SRodney W. GrimesIf the referenced file does not exist, the file information and type will
949b50d902SRodney W. Grimesbe for the link itself.
959b50d902SRodney W. Grimes.It Fl P
969b50d902SRodney W. GrimesThe
979b50d902SRodney W. Grimes.Fl P
989b50d902SRodney W. Grimesoption causes the file information and file type (see
999b50d902SRodney W. Grimes.Xr stat 2 )
1009b50d902SRodney W. Grimesreturned for each symbolic link to be those of the link itself.
1013d9a9402SJohn PolstraThis is the default.
1029b50d902SRodney W. Grimes.It Fl X
1039b50d902SRodney W. GrimesThe
1049b50d902SRodney W. Grimes.Fl X
1059b50d902SRodney W. Grimesoption is a modification to permit
1069b50d902SRodney W. Grimes.Nm
1079b50d902SRodney W. Grimesto be safely used in conjunction with
1089b50d902SRodney W. Grimes.Xr xargs 1 .
1099b50d902SRodney W. GrimesIf a file name contains any of the delimiting characters used by
110bfd12208SRuslan Ermilov.Xr xargs 1 ,
1119b50d902SRodney W. Grimesa diagnostic message is displayed on standard error, and the file
1129b50d902SRodney W. Grimesis skipped.
113bfd12208SRuslan ErmilovThe delimiting characters include single
114bfd12208SRuslan Ermilov.Pq Dq Li " ' "
115bfd12208SRuslan Ermilovand double
116bfd12208SRuslan Ermilov.Pq Dq Li " \*q "
117bfd12208SRuslan Ermilovquotes, backslash
118bfd12208SRuslan Ermilov.Pq Dq Li \e ,
119bfd12208SRuslan Ermilovspace, tab and newline characters.
1209b50d902SRodney W. Grimes.It Fl d
1219b50d902SRodney W. GrimesThe
1229b50d902SRodney W. Grimes.Fl d
1239b50d902SRodney W. Grimesoption causes
1248fe908efSRuslan Ermilov.Nm
125bfd12208SRuslan Ermilovto perform a depth\-first traversal, i.e., directories
1269b50d902SRodney W. Grimesare visited in post\-order and all entries in a directory will be acted
1279b50d902SRodney W. Grimeson before the directory itself.
1289b50d902SRodney W. GrimesBy default,
1298fe908efSRuslan Ermilov.Nm
130bfd12208SRuslan Ermilovvisits directories in pre\-order, i.e., before their contents.
1319b50d902SRodney W. GrimesNote, the default is
132bfd12208SRuslan Ermilov.Em not
1339b50d902SRodney W. Grimesa breadth\-first traversal.
1349b50d902SRodney W. Grimes.It Fl f
1359b50d902SRodney W. GrimesThe
1369b50d902SRodney W. Grimes.Fl f
1379b50d902SRodney W. Grimesoption specifies a file hierarchy for
1388fe908efSRuslan Ermilov.Nm
1399b50d902SRodney W. Grimesto traverse.
1409b50d902SRodney W. GrimesFile hierarchies may also be specified as the operands immediately
1419b50d902SRodney W. Grimesfollowing the options.
1426d0c7e13SWolfram Schneider.It Fl s
1436d0c7e13SWolfram SchneiderThe
1446d0c7e13SWolfram Schneider.Fl s
1456df69548SBruce Evansoption causes
1468fe908efSRuslan Ermilov.Nm
1476df69548SBruce Evansto traverse the file hierarchies in lexicographical order,
1486df69548SBruce Evansi.e., alphabetical order within each directory.
1496df69548SBruce EvansNote:
150bfd12208SRuslan Ermilov.Ql find -s
1516d0c7e13SWolfram Schneiderand
152bfd12208SRuslan Ermilov.Ql "find | sort"
1536d0c7e13SWolfram Schneidermay give different results.
1549b50d902SRodney W. Grimes.It Fl x
1559b50d902SRodney W. GrimesThe
1569b50d902SRodney W. Grimes.Fl x
1579b50d902SRodney W. Grimesoption prevents
1588fe908efSRuslan Ermilov.Nm
1599b50d902SRodney W. Grimesfrom descending into directories that have a device number different
1609b50d902SRodney W. Grimesthan that of the file from which the descent began.
1619b50d902SRodney W. Grimes.El
1629b50d902SRodney W. Grimes.Sh PRIMARIES
163bfd12208SRuslan Ermilov.Bl -tag -width indent
1643f5223f8SWolfram Schneider.It Ic -amin Ar n
1653f5223f8SWolfram SchneiderTrue if the difference between the file last access time and the time
1668fe908efSRuslan Ermilov.Nm
16745fe9882SMatthew Huntwas started, rounded up to the next full minute, is
1683f5223f8SWolfram Schneider.Ar n
16945fe9882SMatthew Huntminutes.
170ea92232aSPoul-Henning Kamp.It Ic -anewer Ar file
171ea92232aSPoul-Henning KampSame as
172ea92232aSPoul-Henning Kamp.Ic -neweram .
1739b50d902SRodney W. Grimes.It Ic -atime Ar n
1749b50d902SRodney W. GrimesTrue if the difference between the file last access time and the time
1758fe908efSRuslan Ermilov.Nm
1769b50d902SRodney W. Grimeswas started, rounded up to the next full 24\-hour period, is
1779b50d902SRodney W. Grimes.Ar n
1789b50d902SRodney W. Grimes24\-hour periods.
1793f5223f8SWolfram Schneider.It Ic -cmin Ar n
1803f5223f8SWolfram SchneiderTrue if the difference between the time of last change of file status
1813f5223f8SWolfram Schneiderinformation and the time
1828fe908efSRuslan Ermilov.Nm
18345fe9882SMatthew Huntwas started, rounded up to the next full minute, is
1843f5223f8SWolfram Schneider.Ar n
18545fe9882SMatthew Huntminutes.
186ea92232aSPoul-Henning Kamp.It Ic -cnewer Ar file
187ea92232aSPoul-Henning KampSame as
188ea92232aSPoul-Henning Kamp.Ic -newercm .
1899b50d902SRodney W. Grimes.It Ic -ctime Ar n
1909b50d902SRodney W. GrimesTrue if the difference between the time of last change of file status
1919b50d902SRodney W. Grimesinformation and the time
1928fe908efSRuslan Ermilov.Nm
1939b50d902SRodney W. Grimeswas started, rounded up to the next full 24\-hour period, is
1949b50d902SRodney W. Grimes.Ar n
1959b50d902SRodney W. Grimes24\-hour periods.
196abacbbbfSPeter Wemm.It Ic -delete
1976df69548SBruce EvansDelete found files and/or directories.
1986df69548SBruce EvansAlways returns true.
1996df69548SBruce EvansThis executes
200abacbbbfSPeter Wemmfrom the current working directory as
201abacbbbfSPeter Wemm.Nm
2026df69548SBruce Evansrecurses down the tree.
203bfd12208SRuslan ErmilovIt will not attempt to delete a filename with a
204bfd12208SRuslan Ermilov.Dq Pa /
205bfd12208SRuslan Ermilovcharacter in its pathname relative to
206bfd12208SRuslan Ermilov.Dq Pa \&.
207bfd12208SRuslan Ermilovfor security reasons.
208abacbbbfSPeter WemmDepth\-first traversal processing is implied by this option.
209ed1a4621SPeter Wemm.It Ic -empty
210ed1a4621SPeter WemmTrue if the current file or directory is empty.
211bfd12208SRuslan Ermilov.It Ic -exec Ar utility Op Ar argument ... ;
2129b50d902SRodney W. GrimesTrue if the program named
2139b50d902SRodney W. Grimes.Ar utility
2149b50d902SRodney W. Grimesreturns a zero value as its exit status.
215bfd12208SRuslan ErmilovOptional
216bfd12208SRuslan Ermilov.Ar arguments
217bfd12208SRuslan Ermilovmay be passed to the utility.
218bfd12208SRuslan ErmilovThe expression must be terminated by a semicolon
219bfd12208SRuslan Ermilov.Pq Dq Li \&; .
220bfd12208SRuslan ErmilovIf the string
221bfd12208SRuslan Ermilov.Dq Li {}
222bfd12208SRuslan Ermilovappears anywhere in the utility name or the
2239b50d902SRodney W. Grimesarguments it is replaced by the pathname of the current file.
2249b50d902SRodney W. Grimes.Ar Utility
2259b50d902SRodney W. Grimeswill be executed from the directory from which
2268fe908efSRuslan Ermilov.Nm
2279b50d902SRodney W. Grimeswas executed.
22808274979SYaroslav Tykhiy.Ar Utility
22908274979SYaroslav Tykhiyand
23008274979SYaroslav Tykhiy.Ar arguments
23108274979SYaroslav Tykhiyare not subject to the further expansion of shell patterns
23208274979SYaroslav Tykhiyand constructs.
233bfd12208SRuslan Ermilov.It Ic -execdir Ar utility Op Ar argument ... ;
234127d7563SWarner LoshThe
235bfd12208SRuslan Ermilov.Ic -execdir
236127d7563SWarner Loshprimary is identical to the
237127d7563SWarner Losh.Ic -exec
238127d7563SWarner Loshprimary with the exception that
239bfd12208SRuslan Ermilov.Ar utility
240127d7563SWarner Loshwill be executed from the directory that holds
2416df69548SBruce Evansthe current file.
2426df69548SBruce EvansThe filename substituted for
243bfd12208SRuslan Ermilovthe string
244bfd12208SRuslan Ermilov.Dq Li {}
245bfd12208SRuslan Ermilovis not qualified.
2467fd5ee41SRuslan Ermilov.It Ic -flags Oo Cm - Ns | Ns Cm + Oc Ns Ar flags , Ns Ar notflags
2477fd5ee41SRuslan ErmilovThe flags are specified using symbolic names (see
248208691fcSRuslan Ermilov.Xr chflags 1 ) .
2497fd5ee41SRuslan ErmilovThose with the
2507fd5ee41SRuslan Ermilov.Qq Li no
2517fd5ee41SRuslan Ermilovprefix (except
2527fd5ee41SRuslan Ermilov.Qq Li nodump )
2537fd5ee41SRuslan Ermilovare said to be
2547fd5ee41SRuslan Ermilov.Ar notflags .
2557fd5ee41SRuslan ErmilovFlags in
2567fd5ee41SRuslan Ermilov.Ar flags
2577fd5ee41SRuslan Ermilovare checked to be set, and flags in
2587fd5ee41SRuslan Ermilov.Ar notflags
2597fd5ee41SRuslan Ermilovare checked to be not set.
260208691fcSRuslan ErmilovNote that this is different from
261208691fcSRuslan Ermilov.Ic -perm ,
2627fd5ee41SRuslan Ermilovwhich only allows the user to specify mode bits that are set.
2637fd5ee41SRuslan Ermilov.Pp
2647fd5ee41SRuslan ErmilovIf flags are preceded by a dash
2657fd5ee41SRuslan Ermilov.Pq Dq Li - ,
2667fd5ee41SRuslan Ermilovthis primary evaluates to true
2677fd5ee41SRuslan Ermilovif at least all of the bits in
2687fd5ee41SRuslan Ermilov.Ar flags
2697fd5ee41SRuslan Ermilovand none of the bits in
2707fd5ee41SRuslan Ermilov.Ar notflags
2717fd5ee41SRuslan Ermilovare set in the file's flags bits.
2727fd5ee41SRuslan ErmilovIf flags are preceded by a plus
2737fd5ee41SRuslan Ermilov.Pq Dq Li + ,
2747fd5ee41SRuslan Ermilovthis primary evaluates to true
2757fd5ee41SRuslan Ermilovif any of the bits in
2767fd5ee41SRuslan Ermilov.Ar flags
2777fd5ee41SRuslan Ermilovis set in the file's flags bits,
2787fd5ee41SRuslan Ermilovor any of the bits in
2797fd5ee41SRuslan Ermilov.Ar notflags
2807fd5ee41SRuslan Ermilovis not set in the file's flags bits.
2817fd5ee41SRuslan ErmilovOtherwise,
2827fd5ee41SRuslan Ermilovthis primary evaluates to true
2837fd5ee41SRuslan Ermilovif the bits in
2847fd5ee41SRuslan Ermilov.Ar flags
2857fd5ee41SRuslan Ermilovexactly match the file's flags bits,
2867fd5ee41SRuslan Ermilovand none of the
2877fd5ee41SRuslan Ermilov.Ar flags
2887fd5ee41SRuslan Ermilovbits match those of
2897fd5ee41SRuslan Ermilov.Ar notflags .
2909b50d902SRodney W. Grimes.It Ic -fstype Ar type
2919b50d902SRodney W. GrimesTrue if the file is contained in a file system of type
2929b50d902SRodney W. Grimes.Ar type .
293841484cdSPeter WemmThe
294841484cdSPeter Wemm.Xr sysctl 8
295841484cdSPeter Wemmcommand can be used to find out the types of filesystems
296841484cdSPeter Wemmthat are available on the system:
297bfd12208SRuslan Ermilov.Pp
298bfd12208SRuslan Ermilov.Dl "sysctl vfs"
299bfd12208SRuslan Ermilov.Pp
300bfd12208SRuslan ErmilovIn addition, there are two pseudo-types,
301bfd12208SRuslan Ermilov.Dq Li local
302bfd12208SRuslan Ermilovand
303bfd12208SRuslan Ermilov.Dq Li rdonly .
3049b50d902SRodney W. GrimesThe former matches any file system physically mounted on the system where
3059b50d902SRodney W. Grimesthe
3068fe908efSRuslan Ermilov.Nm
3079b50d902SRodney W. Grimesis being executed and the latter matches any file system which is
3089b50d902SRodney W. Grimesmounted read-only.
3099b50d902SRodney W. Grimes.It Ic -group Ar gname
3109b50d902SRodney W. GrimesTrue if the file belongs to the group
3119b50d902SRodney W. Grimes.Ar gname .
3129b50d902SRodney W. GrimesIf
3139b50d902SRodney W. Grimes.Ar gname
3149b50d902SRodney W. Grimesis numeric and there is no such group name, then
3159b50d902SRodney W. Grimes.Ar gname
316bfd12208SRuslan Ermilovis treated as a group ID.
317208691fcSRuslan Ermilov.It Ic -iname Ar pattern
318208691fcSRuslan ErmilovLike
319208691fcSRuslan Ermilov.Ic -name ,
320208691fcSRuslan Ermilovbut the match is case insensitive.
3219b50d902SRodney W. Grimes.It Ic -inum Ar n
3229b50d902SRodney W. GrimesTrue if the file has inode number
3239b50d902SRodney W. Grimes.Ar n .
324208691fcSRuslan Ermilov.It Ic -ipath Ar pattern
325208691fcSRuslan ErmilovLike
326208691fcSRuslan Ermilov.Ic -path ,
327208691fcSRuslan Ermilovbut the match is case insensitive.
328208691fcSRuslan Ermilov.It Ic -iregex Ar pattern
329208691fcSRuslan ErmilovLike
330208691fcSRuslan Ermilov.Ic -regex ,
331208691fcSRuslan Ermilovbut the match is case insensitive.
3329b50d902SRodney W. Grimes.It Ic -links Ar n
3339b50d902SRodney W. GrimesTrue if the file has
3349b50d902SRodney W. Grimes.Ar n
3359b50d902SRodney W. Grimeslinks.
3369b50d902SRodney W. Grimes.It Ic -ls
3379b50d902SRodney W. GrimesThis primary always evaluates to true.
3389b50d902SRodney W. GrimesThe following information for the current file is written to standard output:
3399b50d902SRodney W. Grimesits inode number, size in 512\-byte blocks, file permissions, number of hard
3409b50d902SRodney W. Grimeslinks, owner, group, size in bytes, last modification time, and pathname.
3419b50d902SRodney W. GrimesIf the file is a block or character special file, the major and minor numbers
3429b50d902SRodney W. Grimeswill be displayed instead of the size in bytes.
3439b50d902SRodney W. GrimesIf the file is a symbolic link, the pathname of the linked\-to file will be
344bfd12208SRuslan Ermilovdisplayed preceded by
345bfd12208SRuslan Ermilov.Dq Li -> .
346bfd12208SRuslan ErmilovThe format is identical to that produced by
347bfd12208SRuslan Ermilov.Bk -words
348bfd12208SRuslan Ermilov.Nm ls Fl dgils .
349bfd12208SRuslan Ermilov.Ek
350c76bc8f3SOllivier Robert.It Ic -maxdepth Ar n
351c76bc8f3SOllivier RobertTrue if the depth of the current file into the tree is less than or equal to
352c76bc8f3SOllivier Robert.Ar n .
353c76bc8f3SOllivier Robert.It Ic -mindepth Ar n
354c76bc8f3SOllivier RobertTrue if the depth of the current file into the tree is greater than or equal to
355c76bc8f3SOllivier Robert.Ar n .
3563f5223f8SWolfram Schneider.It Ic -mmin Ar n
3573f5223f8SWolfram SchneiderTrue if the difference between the file last modification time and the time
3588fe908efSRuslan Ermilov.Nm
35945fe9882SMatthew Huntwas started, rounded up to the next full minute, is
3603f5223f8SWolfram Schneider.Ar n
36145fe9882SMatthew Huntminutes.
362208691fcSRuslan Ermilov.It Ic -mnewer Ar file
363208691fcSRuslan ErmilovSame as
364208691fcSRuslan Ermilov.Ic -newer .
3659b50d902SRodney W. Grimes.It Ic -mtime Ar n
3669b50d902SRodney W. GrimesTrue if the difference between the file last modification time and the time
3678fe908efSRuslan Ermilov.Nm
3689b50d902SRodney W. Grimeswas started, rounded up to the next full 24\-hour period, is
3699b50d902SRodney W. Grimes.Ar n
3709b50d902SRodney W. Grimes24\-hour periods.
3719b50d902SRodney W. Grimes.It Ic -name Ar pattern
3729b50d902SRodney W. GrimesTrue if the last component of the pathname being examined matches
3739b50d902SRodney W. Grimes.Ar pattern .
374bfd12208SRuslan ErmilovSpecial shell pattern matching characters
375bfd12208SRuslan Ermilov.Dq ( Li \&[ ,
376bfd12208SRuslan Ermilov.Dq Li \&] ,
377bfd12208SRuslan Ermilov.Dq Li * ,
378bfd12208SRuslan Ermilovand
379bfd12208SRuslan Ermilov.Dq Li \&? )
3809b50d902SRodney W. Grimesmay be used as part of
3819b50d902SRodney W. Grimes.Ar pattern .
3829b50d902SRodney W. GrimesThese characters may be matched explicitly by escaping them with a
383bfd12208SRuslan Ermilovbackslash
384bfd12208SRuslan Ermilov.Pq Dq Li \e .
3859b50d902SRodney W. Grimes.It Ic -newer Ar file
3869b50d902SRodney W. GrimesTrue if the current file has a more recent last modification time than
3879b50d902SRodney W. Grimes.Ar file .
388bfd12208SRuslan Ermilov.It Ic -newer Ns Ar X Ns Ar Y Ar file
389bfd12208SRuslan ErmilovTrue if the current file has a more recent last access time
390bfd12208SRuslan Ermilov.Ar ( X Ns = Ns Cm a ) ,
391bfd12208SRuslan Ermilovchange time
392bfd12208SRuslan Ermilov.Ar ( X Ns = Ns Cm c ) ,
393bfd12208SRuslan Ermilovor modification time
394bfd12208SRuslan Ermilov.Ar ( X Ns = Ns Cm m )
395bfd12208SRuslan Ermilovthan the last access time
396bfd12208SRuslan Ermilov.Ar ( Y Ns = Ns Cm a ) ,
397bfd12208SRuslan Ermilovchange time
398bfd12208SRuslan Ermilov.Ar ( Y Ns = Ns Cm c ) ,
399bfd12208SRuslan Ermilovor modification time
400bfd12208SRuslan Ermilov.Ar ( Y Ns = Ns Cm m )
401bfd12208SRuslan Ermilovof
402ea92232aSPoul-Henning Kamp.Ar file .
403ea92232aSPoul-Henning KampIn addition, if
404bfd12208SRuslan Ermilov.Ar Y Ns = Ns Cm t ,
405ea92232aSPoul-Henning Kampthen
406ea92232aSPoul-Henning Kamp.Ar file
407ea92232aSPoul-Henning Kampis instead interpreted as a direct date specification of the form
408ea92232aSPoul-Henning Kampunderstood by
409ea92232aSPoul-Henning Kamp.Xr cvs 1 .
410ea92232aSPoul-Henning KampNote that
411ea92232aSPoul-Henning Kamp.Ic -newermm
412ea92232aSPoul-Henning Kampis equivalent to
413ea92232aSPoul-Henning Kamp.Ic -newer .
4149b50d902SRodney W. Grimes.It Ic -nogroup
4159b50d902SRodney W. GrimesTrue if the file belongs to an unknown group.
416208691fcSRuslan Ermilov.It Ic -nouser
417208691fcSRuslan ErmilovTrue if the file belongs to an unknown user.
418208691fcSRuslan Ermilov.It Ic -ok Ar utility Op Ar argument ... ;
419208691fcSRuslan ErmilovThe
420208691fcSRuslan Ermilov.Ic -ok
421208691fcSRuslan Ermilovprimary is identical to the
422208691fcSRuslan Ermilov.Ic -exec
423208691fcSRuslan Ermilovprimary with the exception that
424208691fcSRuslan Ermilov.Nm
425208691fcSRuslan Ermilovrequests user affirmation for the execution of the
426208691fcSRuslan Ermilov.Ar utility
427208691fcSRuslan Ermilovby printing
428208691fcSRuslan Ermilova message to the terminal and reading a response.
429208691fcSRuslan ErmilovIf the response is other than
430208691fcSRuslan Ermilov.Dq Li y
431208691fcSRuslan Ermilovthe command is not executed and the
432208691fcSRuslan Ermilovvalue of the
433208691fcSRuslan Ermilov.Ic -ok
434208691fcSRuslan Ermilovexpression is false.
435208691fcSRuslan Ermilov.It Ic -okdir Ar utility Op Ar argument ... ;
436208691fcSRuslan ErmilovThe
437208691fcSRuslan Ermilov.Ic -okdir
438208691fcSRuslan Ermilovprimary is identical to the
439208691fcSRuslan Ermilov.Ic -execdir
440208691fcSRuslan Ermilovprimary with the same exception as described for the
441208691fcSRuslan Ermilov.Ic -ok
442208691fcSRuslan Ermilovprimary.
4439b50d902SRodney W. Grimes.It Ic -path Ar pattern
4449b50d902SRodney W. GrimesTrue if the pathname being examined matches
4459b50d902SRodney W. Grimes.Ar pattern .
446bfd12208SRuslan ErmilovSpecial shell pattern matching characters
447bfd12208SRuslan Ermilov.Dq ( Li \&[ ,
448bfd12208SRuslan Ermilov.Dq Li \&] ,
449bfd12208SRuslan Ermilov.Dq Li * ,
450bfd12208SRuslan Ermilovand
451bfd12208SRuslan Ermilov.Dq Li \&? )
4529b50d902SRodney W. Grimesmay be used as part of
4539b50d902SRodney W. Grimes.Ar pattern .
4549b50d902SRodney W. GrimesThese characters may be matched explicitly by escaping them with a
455bfd12208SRuslan Ermilovbackslash
456bfd12208SRuslan Ermilov.Pq Dq Li \e .
457bfd12208SRuslan ErmilovSlashes
458bfd12208SRuslan Ermilov.Pq Dq Li /
459bfd12208SRuslan Ermilovare treated as normal characters and do not have to be
4609b50d902SRodney W. Grimesmatched explicitly.
4617fd5ee41SRuslan Ermilov.It Ic -perm Oo Cm - Ns | Ns Cm + Oc Ns Ar mode
4629b50d902SRodney W. GrimesThe
4639b50d902SRodney W. Grimes.Ar mode
4649b50d902SRodney W. Grimesmay be either symbolic (see
4659b50d902SRodney W. Grimes.Xr chmod 1 )
4669b50d902SRodney W. Grimesor an octal number.
4677fd5ee41SRuslan ErmilovIf the
4687fd5ee41SRuslan Ermilov.Ar mode
4697fd5ee41SRuslan Ermilovis symbolic, a starting value of zero is assumed and the
4707fd5ee41SRuslan Ermilov.Ar mode
4717fd5ee41SRuslan Ermilovsets or clears permissions without regard to the process' file mode
4729b50d902SRodney W. Grimescreation mask.
4737fd5ee41SRuslan ErmilovIf the
4747fd5ee41SRuslan Ermilov.Ar mode
4757fd5ee41SRuslan Ermilovis octal, only bits 07777
476bfd12208SRuslan Ermilov.Pq Dv S_ISUID | S_ISGID | S_ISTXT | S_IRWXU | S_IRWXG | S_IRWXO
4779b50d902SRodney W. Grimesof the file's mode bits participate
4789b50d902SRodney W. Grimesin the comparison.
4797fd5ee41SRuslan ErmilovIf the
4807fd5ee41SRuslan Ermilov.Ar mode
4817fd5ee41SRuslan Ermilovis preceded by a dash
482bfd12208SRuslan Ermilov.Pq Dq Li - ,
4839b88faecSRuslan Ermilovthis primary evaluates to true
4847fd5ee41SRuslan Ermilovif at least all of the bits in the
4857fd5ee41SRuslan Ermilov.Ar mode
4867fd5ee41SRuslan Ermilovare set in the file's mode bits.
4877fd5ee41SRuslan ErmilovIf the
4887fd5ee41SRuslan Ermilov.Ar mode
4897fd5ee41SRuslan Ermilovis preceded by a plus
490bfd12208SRuslan Ermilov.Pq Dq Li + ,
4919b88faecSRuslan Ermilovthis primary evaluates to true
4927fd5ee41SRuslan Ermilovif any of the bits in the
4937fd5ee41SRuslan Ermilov.Ar mode
4947fd5ee41SRuslan Ermilovare set in the file's mode bits.
4959d2796c3SOllivier RobertOtherwise, this primary evaluates to true if
4967fd5ee41SRuslan Ermilovthe bits in the
4977fd5ee41SRuslan Ermilov.Ar mode
4987fd5ee41SRuslan Ermilovexactly match the file's mode bits.
499bfd12208SRuslan ErmilovNote, the first character of a symbolic mode may not be a dash
500bfd12208SRuslan Ermilov.Pq Dq Li - .
5019b50d902SRodney W. Grimes.It Ic -print
5029b50d902SRodney W. GrimesThis primary always evaluates to true.
5039b50d902SRodney W. GrimesIt prints the pathname of the current file to standard output.
504841484cdSPeter WemmIf none of
505bfd12208SRuslan Ermilov.Ic -exec , -ls , -print0 ,
5069b50d902SRodney W. Grimesor
507bfd12208SRuslan Ermilov.Ic -ok
508841484cdSPeter Wemmis specified, the given expression shall be effectively replaced by
509bfd12208SRuslan Ermilov.Cm \&( Ar "given expression" Cm \&) Ic -print .
5107cd23434SGarrett Wollman.It Ic -print0
5117cd23434SGarrett WollmanThis primary always evaluates to true.
512fbe0d04aSMasafumi Max NAKANEIt prints the pathname of the current file to standard output, followed by an
513bfd12208SRuslan Ermilov.Tn ASCII NUL
5147cd23434SGarrett Wollmancharacter (character code 0).
5159b50d902SRodney W. Grimes.It Ic -prune
5169b50d902SRodney W. GrimesThis primary always evaluates to true.
5179b50d902SRodney W. GrimesIt causes
5188fe908efSRuslan Ermilov.Nm
5199b50d902SRodney W. Grimesto not descend into the current file.
5209b50d902SRodney W. GrimesNote, the
5219b50d902SRodney W. Grimes.Ic -prune
5229b50d902SRodney W. Grimesprimary has no effect if the
5239b50d902SRodney W. Grimes.Fl d
5249b50d902SRodney W. Grimesoption was specified.
525208691fcSRuslan Ermilov.It Ic -regex Ar pattern
526208691fcSRuslan ErmilovTrue if the whole path of the file matches
527208691fcSRuslan Ermilov.Ar pattern
528208691fcSRuslan Ermilovusing regular expression.
529208691fcSRuslan ErmilovTo match a file named
530208691fcSRuslan Ermilov.Dq Pa ./foo/xyzzy ,
531208691fcSRuslan Ermilovyou can use the regular expression
532208691fcSRuslan Ermilov.Dq Li ".*/[xyz]*"
533208691fcSRuslan Ermilovor
534208691fcSRuslan Ermilov.Dq Li ".*/foo/.*" ,
535208691fcSRuslan Ermilovbut not
536208691fcSRuslan Ermilov.Dq Li xyzzy
537208691fcSRuslan Ermilovor
538208691fcSRuslan Ermilov.Dq Li /foo/ .
5399b50d902SRodney W. Grimes.It Ic -size Ar n Ns Op Cm c
5409b50d902SRodney W. GrimesTrue if the file's size, rounded up, in 512\-byte blocks is
5419b50d902SRodney W. Grimes.Ar n .
5429b50d902SRodney W. GrimesIf
5439b50d902SRodney W. Grimes.Ar n
544bfd12208SRuslan Ermilovis followed by a
545bfd12208SRuslan Ermilov.Cm c ,
546bfd12208SRuslan Ermilovthen the primary is true if the
5479b50d902SRodney W. Grimesfile's size is
5489b50d902SRodney W. Grimes.Ar n
549bfd12208SRuslan Ermilovbytes (characters).
5509b50d902SRodney W. Grimes.It Ic -type Ar t
5519b50d902SRodney W. GrimesTrue if the file is of the specified type.
5529b50d902SRodney W. GrimesPossible file types are as follows:
5539b50d902SRodney W. Grimes.Pp
554bfd12208SRuslan Ermilov.Bl -tag -width indent -compact
5559b50d902SRodney W. Grimes.It Cm b
5569b50d902SRodney W. Grimesblock special
5579b50d902SRodney W. Grimes.It Cm c
5589b50d902SRodney W. Grimescharacter special
5599b50d902SRodney W. Grimes.It Cm d
5609b50d902SRodney W. Grimesdirectory
5619b50d902SRodney W. Grimes.It Cm f
5629b50d902SRodney W. Grimesregular file
5639b50d902SRodney W. Grimes.It Cm l
5649b50d902SRodney W. Grimessymbolic link
5659b50d902SRodney W. Grimes.It Cm p
5669b50d902SRodney W. GrimesFIFO
5679b50d902SRodney W. Grimes.It Cm s
5689b50d902SRodney W. Grimessocket
5699b50d902SRodney W. Grimes.El
5709b50d902SRodney W. Grimes.It Ic -user Ar uname
5719b50d902SRodney W. GrimesTrue if the file belongs to the user
5729b50d902SRodney W. Grimes.Ar uname .
5739b50d902SRodney W. GrimesIf
5749b50d902SRodney W. Grimes.Ar uname
5759b50d902SRodney W. Grimesis numeric and there is no such user name, then
5769b50d902SRodney W. Grimes.Ar uname
577bfd12208SRuslan Ermilovis treated as a user ID.
5789b50d902SRodney W. Grimes.El
5799b50d902SRodney W. Grimes.Pp
5809b50d902SRodney W. GrimesAll primaries which take a numeric argument allow the number to be
5819b88faecSRuslan Ermilovpreceded by a plus sign
582bfd12208SRuslan Ermilov.Pq Dq Li +
5839b88faecSRuslan Ermilovor a minus sign
584bfd12208SRuslan Ermilov.Pq Dq Li - .
585bfd12208SRuslan ErmilovA preceding plus sign means
586bfd12208SRuslan Ermilov.Dq more than n ,
587bfd12208SRuslan Ermilova preceding minus sign means
588bfd12208SRuslan Ermilov.Dq less than n
589bfd12208SRuslan Ermilovand neither means
590bfd12208SRuslan Ermilov.Dq exactly n .
5919b50d902SRodney W. Grimes.Sh OPERATORS
5929b50d902SRodney W. GrimesThe primaries may be combined using the following operators.
5939b50d902SRodney W. GrimesThe operators are listed in order of decreasing precedence.
594bfd12208SRuslan Ermilov.Pp
595bfd12208SRuslan Ermilov.Bl -tag -width "( expression )" -compact
5960c101fb2SJoseph Koshy.It Cm \&( Ar expression Cm \&)
5979b50d902SRodney W. GrimesThis evaluates to true if the parenthesized expression evaluates to
5989b50d902SRodney W. Grimestrue.
5999b50d902SRodney W. Grimes.Pp
6000c101fb2SJoseph Koshy.It Cm \&! Ar expression
6019b50d902SRodney W. GrimesThis is the unary
6029b50d902SRodney W. Grimes.Tn NOT
6039b50d902SRodney W. Grimesoperator.
6049b50d902SRodney W. GrimesIt evaluates to true if the expression is false.
6059b50d902SRodney W. Grimes.Pp
6069b50d902SRodney W. Grimes.It Ar expression Cm -and Ar expression
6079b50d902SRodney W. Grimes.It Ar expression expression
6089b50d902SRodney W. GrimesThe
6099b50d902SRodney W. Grimes.Cm -and
6109b50d902SRodney W. Grimesoperator is the logical
6119b50d902SRodney W. Grimes.Tn AND
6129b50d902SRodney W. Grimesoperator.
6139b50d902SRodney W. GrimesAs it is implied by the juxtaposition of two expressions it does not
6149b50d902SRodney W. Grimeshave to be specified.
6159b50d902SRodney W. GrimesThe expression evaluates to true if both expressions are true.
6169b50d902SRodney W. GrimesThe second expression is not evaluated if the first expression is false.
6179b50d902SRodney W. Grimes.Pp
6189b50d902SRodney W. Grimes.It Ar expression Cm -or Ar expression
6199b50d902SRodney W. GrimesThe
6209b50d902SRodney W. Grimes.Cm -or
6219b50d902SRodney W. Grimesoperator is the logical
6229b50d902SRodney W. Grimes.Tn OR
6239b50d902SRodney W. Grimesoperator.
6249b50d902SRodney W. GrimesThe expression evaluates to true if either the first or the second expression
6259b50d902SRodney W. Grimesis true.
6269b50d902SRodney W. GrimesThe second expression is not evaluated if the first expression is true.
6279b50d902SRodney W. Grimes.El
6289b50d902SRodney W. Grimes.Pp
6299b50d902SRodney W. GrimesAll operands and primaries must be separate arguments to
6308fe908efSRuslan Ermilov.Nm .
6319b50d902SRodney W. GrimesPrimaries which themselves take arguments expect each argument
6329b50d902SRodney W. Grimesto be a separate argument to
6338fe908efSRuslan Ermilov.Nm .
6349b50d902SRodney W. Grimes.Sh EXAMPLES
6359b50d902SRodney W. GrimesThe following examples are shown as given to the shell:
636bfd12208SRuslan Ermilov.Bl -tag -width indent
6379b50d902SRodney W. Grimes.It Li "find / \e! -name \*q*.c\*q -print"
638bfd12208SRuslan ErmilovPrint out a list of all the files whose names do not end in
639bfd12208SRuslan Ermilov.Pa .c .
6409b50d902SRodney W. Grimes.It Li "find / -newer ttt -user wnj -print"
641bfd12208SRuslan ErmilovPrint out a list of all the files owned by user
642bfd12208SRuslan Ermilov.Dq wnj
643bfd12208SRuslan Ermilovthat are newer
644bfd12208SRuslan Ermilovthan the file
645bfd12208SRuslan Ermilov.Pa ttt .
6469b50d902SRodney W. Grimes.It Li "find / \e! \e( -newer ttt -user wnj \e) -print"
647bfd12208SRuslan ErmilovPrint out a list of all the files which are not both newer than
648bfd12208SRuslan Ermilov.Pa ttt
649bfd12208SRuslan Ermilovand owned by
650bfd12208SRuslan Ermilov.Dq wnj .
6519b50d902SRodney W. Grimes.It Li "find / \e( -newer ttt -or -user wnj \e) -print"
652bfd12208SRuslan ErmilovPrint out a list of all the files that are either owned by
653bfd12208SRuslan Ermilov.Dq wnj
654bfd12208SRuslan Ermilovor that are newer than
655bfd12208SRuslan Ermilov.Pa ttt .
656ea92232aSPoul-Henning Kamp.It Li "find . -newerct '1 minute ago' -print"
657ea92232aSPoul-Henning KampPrint out a list of all the files whose inode change time is more
658ea92232aSPoul-Henning Kamprecent than the current time minus one minute.
6599b50d902SRodney W. Grimes.El
6609b50d902SRodney W. Grimes.Sh SEE ALSO
661567664c4SOllivier Robert.Xr chflags 1 ,
6629b50d902SRodney W. Grimes.Xr chmod 1 ,
663ea92232aSPoul-Henning Kamp.Xr cvs 1 ,
6649b50d902SRodney W. Grimes.Xr locate 1 ,
66541cbb624SJoseph Koshy.Xr whereis 1 ,
66641cbb624SJoseph Koshy.Xr which 1 ,
6679b50d902SRodney W. Grimes.Xr stat 2 ,
6689b50d902SRodney W. Grimes.Xr fts 3 ,
6699b50d902SRodney W. Grimes.Xr getgrent 3 ,
6709b50d902SRodney W. Grimes.Xr getpwent 3 ,
6719b50d902SRodney W. Grimes.Xr strmode 3 ,
67294ad6032SRuslan Ermilov.Xr re_format 7 ,
6739b50d902SRodney W. Grimes.Xr symlink 7
6749b50d902SRodney W. Grimes.Sh STANDARDS
6759b50d902SRodney W. GrimesThe
6768fe908efSRuslan Ermilov.Nm
6779b50d902SRodney W. Grimesutility syntax is a superset of the syntax specified by the
6789b50d902SRodney W. Grimes.St -p1003.2
6799b50d902SRodney W. Grimesstandard.
6809b50d902SRodney W. Grimes.Pp
681f6e4fb22SSteve PriceAll the single character options as well as the
682bfd12208SRuslan Ermilov.Ic -iname , -inum , -iregex , -print0 , -delete , -ls ,
683f6e4fb22SSteve Priceand
6847c1d4b3aSAkinori MUSHA.Ic -regex
685f6e4fb22SSteve Priceprimaries are extensions to
686f6e4fb22SSteve Price.St -p1003.2 .
687f6e4fb22SSteve Price.Pp
6889b50d902SRodney W. GrimesHistorically, the
689bfd12208SRuslan Ermilov.Fl d , h
6909b50d902SRodney W. Grimesand
6919b50d902SRodney W. Grimes.Fl x
692bfd12208SRuslan Ermilovoptions were implemented using the primaries
693bfd12208SRuslan Ermilov.Ic -depth , -follow ,
694bfd12208SRuslan Ermilovand
695bfd12208SRuslan Ermilov.Ic -xdev .
6969b50d902SRodney W. GrimesThese primaries always evaluated to true.
6979b50d902SRodney W. GrimesAs they were really global variables that took effect before the traversal
6989b50d902SRodney W. Grimesbegan, some legal expressions could have unexpected results.
699bfd12208SRuslan ErmilovAn example is the expression
700bfd12208SRuslan Ermilov.Ic -print Cm -o Ic -depth .
701bfd12208SRuslan ErmilovAs
702bfd12208SRuslan Ermilov.Ic -print
703bfd12208SRuslan Ermilovalways evaluates to true, the standard order of evaluation
704bfd12208SRuslan Ermilovimplies that
705bfd12208SRuslan Ermilov.Ic -depth
706bfd12208SRuslan Ermilovwould never be evaluated.
7079b50d902SRodney W. GrimesThis is not the case.
7089b50d902SRodney W. Grimes.Pp
709bfd12208SRuslan ErmilovThe operator
710bfd12208SRuslan Ermilov.Cm -or
711bfd12208SRuslan Ermilovwas implemented as
712bfd12208SRuslan Ermilov.Cm -o ,
713bfd12208SRuslan Ermilovand the operator
714bfd12208SRuslan Ermilov.Cm -and
715bfd12208SRuslan Ermilovwas implemented as
716bfd12208SRuslan Ermilov.Cm -a .
7179b50d902SRodney W. Grimes.Pp
7189b50d902SRodney W. GrimesHistoric implementations of the
719bfd12208SRuslan Ermilov.Ic -exec
7209b50d902SRodney W. Grimesand
721bfd12208SRuslan Ermilov.Ic -ok
722bfd12208SRuslan Ermilovprimaries did not replace the string
723bfd12208SRuslan Ermilov.Dq Li {}
724bfd12208SRuslan Ermilovin the utility name or the
7259b50d902SRodney W. Grimesutility arguments if it had preceding or following non-whitespace characters.
7269b50d902SRodney W. GrimesThis version replaces it no matter where in the utility name or arguments
7279b50d902SRodney W. Grimesit appears.
7287c1d4b3aSAkinori MUSHA.Pp
7297c1d4b3aSAkinori MUSHAThe
7307c1d4b3aSAkinori MUSHA.Fl E
7317c1d4b3aSAkinori MUSHAoption was implemented on the analogy of
7327c1d4b3aSAkinori MUSHA.Xr grep 1
7337c1d4b3aSAkinori MUSHAand
7347c1d4b3aSAkinori MUSHA.Xr sed 1 .
7359b50d902SRodney W. Grimes.Sh BUGS
7369b50d902SRodney W. GrimesThe special characters used by
7378fe908efSRuslan Ermilov.Nm
7389b50d902SRodney W. Grimesare also special characters to many shell programs.
739bfd12208SRuslan ErmilovIn particular, the characters
740bfd12208SRuslan Ermilov.Dq Li * ,
741bfd12208SRuslan Ermilov.Dq Li \&[ ,
742bfd12208SRuslan Ermilov.Dq Li \&] ,
743bfd12208SRuslan Ermilov.Dq Li \&? ,
744bfd12208SRuslan Ermilov.Dq Li \&( ,
745bfd12208SRuslan Ermilov.Dq Li \&) ,
746bfd12208SRuslan Ermilov.Dq Li \&! ,
747bfd12208SRuslan Ermilov.Dq Li \e
748bfd12208SRuslan Ermilovand
749bfd12208SRuslan Ermilov.Dq Li \&;
750bfd12208SRuslan Ermilovmay have to be escaped from the shell.
7519b50d902SRodney W. Grimes.Pp
7529b50d902SRodney W. GrimesAs there is no delimiter separating options and file names or file
7539b50d902SRodney W. Grimesnames and the
7549b50d902SRodney W. Grimes.Ar expression ,
755bfd12208SRuslan Ermilovit is difficult to specify files named
756bfd12208SRuslan Ermilov.Pa -xdev
757bfd12208SRuslan Ermilovor
758bfd12208SRuslan Ermilov.Pa \&! .
7599b50d902SRodney W. GrimesThese problems are handled by the
7609b50d902SRodney W. Grimes.Fl f
7619b50d902SRodney W. Grimesoption and the
7629b50d902SRodney W. Grimes.Xr getopt 3
763bfd12208SRuslan Ermilov.Dq Fl Fl
764bfd12208SRuslan Ermilovconstruct.
765abacbbbfSPeter Wemm.Pp
766abacbbbfSPeter WemmThe
767abacbbbfSPeter Wemm.Ic -delete
76856f7a840SBill Fumerolaprimary does not interact well with other options that cause the filesystem
769abacbbbfSPeter Wemmtree traversal options to be changed.
770b8923d4cSWolfram Schneider.Sh HISTORY
771b8923d4cSWolfram SchneiderA
772b8923d4cSWolfram Schneider.Nm
773b8923d4cSWolfram Schneidercommand appeared in
774b8923d4cSWolfram Schneider.At v1 .
775