Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / man / man1 / find2perl.1
CommitLineData
920dae64
AT
1.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
2.\"
3.\" Standard preamble:
4.\" ========================================================================
5.de Sh \" Subsection heading
6.br
7.if t .Sp
8.ne 5
9.PP
10\fB\\$1\fR
11.PP
12..
13.de Sp \" Vertical space (when we can't use .PP)
14.if t .sp .5v
15.if n .sp
16..
17.de Vb \" Begin verbatim text
18.ft CW
19.nf
20.ne \\$1
21..
22.de Ve \" End verbatim text
23.ft R
24.fi
25..
26.\" Set up some character translations and predefined strings. \*(-- will
27.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28.\" double quote, and \*(R" will give a right double quote. | will give a
29.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
30.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
31.\" expand to `' in nroff, nothing in troff, for use with C<>.
32.tr \(*W-|\(bv\*(Tr
33.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34.ie n \{\
35. ds -- \(*W-
36. ds PI pi
37. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
39. ds L" ""
40. ds R" ""
41. ds C` ""
42. ds C' ""
43'br\}
44.el\{\
45. ds -- \|\(em\|
46. ds PI \(*p
47. ds L" ``
48. ds R" ''
49'br\}
50.\"
51.\" If the F register is turned on, we'll generate index entries on stderr for
52.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53.\" entries marked with X<> in POD. Of course, you'll have to process the
54.\" output yourself in some meaningful fashion.
55.if \nF \{\
56. de IX
57. tm Index:\\$1\t\\n%\t"\\$2"
58..
59. nr % 0
60. rr F
61.\}
62.\"
63.\" For nroff, turn off justification. Always turn off hyphenation; it makes
64.\" way too many mistakes in technical documents.
65.hy 0
66.if n .na
67.\"
68.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69.\" Fear. Run. Save yourself. No user-serviceable parts.
70. \" fudge factors for nroff and troff
71.if n \{\
72. ds #H 0
73. ds #V .8m
74. ds #F .3m
75. ds #[ \f1
76. ds #] \fP
77.\}
78.if t \{\
79. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80. ds #V .6m
81. ds #F 0
82. ds #[ \&
83. ds #] \&
84.\}
85. \" simple accents for nroff and troff
86.if n \{\
87. ds ' \&
88. ds ` \&
89. ds ^ \&
90. ds , \&
91. ds ~ ~
92. ds /
93.\}
94.if t \{\
95. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101.\}
102. \" troff and (daisy-wheel) nroff accents
103.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110.ds ae a\h'-(\w'a'u*4/10)'e
111.ds Ae A\h'-(\w'A'u*4/10)'E
112. \" corrections for vroff
113.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115. \" for low resolution devices (crt and lpr)
116.if \n(.H>23 .if \n(.V>19 \
117\{\
118. ds : e
119. ds 8 ss
120. ds o a
121. ds d- d\h'-1'\(ga
122. ds D- D\h'-1'\(hy
123. ds th \o'bp'
124. ds Th \o'LP'
125. ds ae ae
126. ds Ae AE
127.\}
128.rm #[ #] #H #V #F C
129.\" ========================================================================
130.\"
131.IX Title "FIND2PERL 1"
132.TH FIND2PERL 1 "2007-06-19" "perl v5.8.8" "Perl Programmers Reference Guide"
133.SH "NAME"
134find2perl \- translate find command lines to Perl code
135.SH "SYNOPSIS"
136.IX Header "SYNOPSIS"
137.Vb 1
138\& find2perl [paths] [predicates] | perl
139.Ve
140.SH "DESCRIPTION"
141.IX Header "DESCRIPTION"
142find2perl is a little translator to convert find command lines to
143equivalent Perl code. The resulting code is typically faster than
144running find itself.
145.PP
146\&\*(L"paths\*(R" are a set of paths where find2perl will start its searches and
147\&\*(L"predicates\*(R" are taken from the following list.
148.ie n .IP """! PREDICATE""" 4
149.el .IP "\f(CW! PREDICATE\fR" 4
150.IX Item "! PREDICATE"
151Negate the sense of the following predicate. The \f(CW\*(C`!\*(C'\fR must be passed as
152a distinct argument, so it may need to be surrounded by whitespace and/or
153quoted from interpretation by the shell using a backslash (just as with
154using \f(CWfind(1)\fR).
155.ie n .IP """( PREDICATES )""" 4
156.el .IP "\f(CW( PREDICATES )\fR" 4
157.IX Item "( PREDICATES )"
158Group the given \s-1PREDICATES\s0. The parentheses must be passed as distinct
159arguments, so they may need to be surrounded by whitespace and/or
160quoted from interpretation by the shell using a backslash (just as with
161using \f(CWfind(1)\fR).
162.ie n .IP """PREDICATE1 PREDICATE2""" 4
163.el .IP "\f(CWPREDICATE1 PREDICATE2\fR" 4
164.IX Item "PREDICATE1 PREDICATE2"
165True if _both_ \s-1PREDICATE1\s0 and \s-1PREDICATE2\s0 are true; \s-1PREDICATE2\s0 is not
166evaluated if \s-1PREDICATE1\s0 is false.
167.ie n .IP """PREDICATE1 \-o PREDICATE2""" 4
168.el .IP "\f(CWPREDICATE1 \-o PREDICATE2\fR" 4
169.IX Item "PREDICATE1 -o PREDICATE2"
170True if either one of \s-1PREDICATE1\s0 or \s-1PREDICATE2\s0 is true; \s-1PREDICATE2\s0 is
171not evaluated if \s-1PREDICATE1\s0 is true.
172.ie n .IP """\-follow""" 4
173.el .IP "\f(CW\-follow\fR" 4
174.IX Item "-follow"
175Follow (dereference) symlinks. The checking of file attributes depends
176on the position of the \f(CW\*(C`\-follow\*(C'\fR option. If it precedes the file
177check option, an \f(CW\*(C`stat\*(C'\fR is done which means the file check applies to the
178file the symbolic link is pointing to. If \f(CW\*(C`\-follow\*(C'\fR option follows the
179file check option, this now applies to the symbolic link itself, i.e.
180an \f(CW\*(C`lstat\*(C'\fR is done.
181.ie n .IP """\-depth""" 4
182.el .IP "\f(CW\-depth\fR" 4
183.IX Item "-depth"
184Change directory traversal algorithm from breadth-first to depth\-first.
185.ie n .IP """\-prune""" 4
186.el .IP "\f(CW\-prune\fR" 4
187.IX Item "-prune"
188Do not descend into the directory currently matched.
189.ie n .IP """\-xdev""" 4
190.el .IP "\f(CW\-xdev\fR" 4
191.IX Item "-xdev"
192Do not traverse mount points (prunes search at mount-point directories).
193.ie n .IP """\-name GLOB""" 4
194.el .IP "\f(CW\-name GLOB\fR" 4
195.IX Item "-name GLOB"
196File name matches specified \s-1GLOB\s0 wildcard pattern. \s-1GLOB\s0 may need to be
197quoted to avoid interpretation by the shell (just as with using
198\&\f(CWfind(1)\fR).
199.ie n .IP """\-iname GLOB""" 4
200.el .IP "\f(CW\-iname GLOB\fR" 4
201.IX Item "-iname GLOB"
202Like \f(CW\*(C`\-name\*(C'\fR, but the match is case insensitive.
203.ie n .IP """\-path GLOB""" 4
204.el .IP "\f(CW\-path GLOB\fR" 4
205.IX Item "-path GLOB"
206Path name matches specified \s-1GLOB\s0 wildcard pattern.
207.ie n .IP """\-ipath GLOB""" 4
208.el .IP "\f(CW\-ipath GLOB\fR" 4
209.IX Item "-ipath GLOB"
210Like \f(CW\*(C`\-path\*(C'\fR, but the match is case insensitive.
211.ie n .IP """\-perm PERM""" 4
212.el .IP "\f(CW\-perm PERM\fR" 4
213.IX Item "-perm PERM"
214Low-order 9 bits of permission match octal value \s-1PERM\s0.
215.ie n .IP """\-perm \-PERM""" 4
216.el .IP "\f(CW\-perm \-PERM\fR" 4
217.IX Item "-perm -PERM"
218The bits specified in \s-1PERM\s0 are all set in file's permissions.
219.ie n .IP """\-type X""" 4
220.el .IP "\f(CW\-type X\fR" 4
221.IX Item "-type X"
222The file's type matches perl's \f(CW\*(C`\-X\*(C'\fR operator.
223.ie n .IP """\-fstype TYPE""" 4
224.el .IP "\f(CW\-fstype TYPE\fR" 4
225.IX Item "-fstype TYPE"
226Filesystem of current path is of type \s-1TYPE\s0 (only NFS/non\-NFS distinction
227is implemented).
228.ie n .IP """\-user USER""" 4
229.el .IP "\f(CW\-user USER\fR" 4
230.IX Item "-user USER"
231True if \s-1USER\s0 is owner of file.
232.ie n .IP """\-group GROUP""" 4
233.el .IP "\f(CW\-group GROUP\fR" 4
234.IX Item "-group GROUP"
235True if file's group is \s-1GROUP\s0.
236.ie n .IP """\-nouser""" 4
237.el .IP "\f(CW\-nouser\fR" 4
238.IX Item "-nouser"
239True if file's owner is not in password database.
240.ie n .IP """\-nogroup""" 4
241.el .IP "\f(CW\-nogroup\fR" 4
242.IX Item "-nogroup"
243True if file's group is not in group database.
244.ie n .IP """\-inum INUM""" 4
245.el .IP "\f(CW\-inum INUM\fR" 4
246.IX Item "-inum INUM"
247True file's inode number is \s-1INUM\s0.
248.ie n .IP """\-links N""" 4
249.el .IP "\f(CW\-links N\fR" 4
250.IX Item "-links N"
251True if (hard) link count of file matches N (see below).
252.ie n .IP """\-size N""" 4
253.el .IP "\f(CW\-size N\fR" 4
254.IX Item "-size N"
255True if file's size matches N (see below) N is normally counted in
256512\-byte blocks, but a suffix of \*(L"c\*(R" specifies that size should be
257counted in characters (bytes) and a suffix of \*(L"k\*(R" specifes that
258size should be counted in 1024\-byte blocks.
259.ie n .IP """\-atime N""" 4
260.el .IP "\f(CW\-atime N\fR" 4
261.IX Item "-atime N"
262True if last-access time of file matches N (measured in days) (see
263below).
264.ie n .IP """\-ctime N""" 4
265.el .IP "\f(CW\-ctime N\fR" 4
266.IX Item "-ctime N"
267True if last-changed time of file's inode matches N (measured in days,
268see below).
269.ie n .IP """\-mtime N""" 4
270.el .IP "\f(CW\-mtime N\fR" 4
271.IX Item "-mtime N"
272True if last-modified time of file matches N (measured in days, see below).
273.ie n .IP """\-newer FILE""" 4
274.el .IP "\f(CW\-newer FILE\fR" 4
275.IX Item "-newer FILE"
276True if last-modified time of file matches N.
277.ie n .IP """\-print""" 4
278.el .IP "\f(CW\-print\fR" 4
279.IX Item "-print"
280Print out path of file (always true). If none of \f(CW\*(C`\-exec\*(C'\fR, \f(CW\*(C`\-ls\*(C'\fR,
281\&\f(CW\*(C`\-print0\*(C'\fR, or \f(CW\*(C`\-ok\*(C'\fR is specified, then \f(CW\*(C`\-print\*(C'\fR will be added
282implicitly.
283.ie n .IP """\-print0""" 4
284.el .IP "\f(CW\-print0\fR" 4
285.IX Item "-print0"
286Like \-print, but terminates with \e0 instead of \en.
287.ie n .IP """\-exec OPTIONS ;""" 4
288.el .IP "\f(CW\-exec OPTIONS ;\fR" 4
289.IX Item "-exec OPTIONS ;"
290\&\fIexec()\fR the arguments in \s-1OPTIONS\s0 in a subprocess; any occurrence of {} in
291\&\s-1OPTIONS\s0 will first be substituted with the path of the current
292file. Note that the command \*(L"rm\*(R" has been special-cased to use perl's
293\&\fIunlink()\fR function instead (as an optimization). The \f(CW\*(C`;\*(C'\fR must be passed as
294a distinct argument, so it may need to be surrounded by whitespace and/or
295quoted from interpretation by the shell using a backslash (just as with
296using \f(CWfind(1)\fR).
297.ie n .IP """\-ok OPTIONS ;""" 4
298.el .IP "\f(CW\-ok OPTIONS ;\fR" 4
299.IX Item "-ok OPTIONS ;"
300Like \-exec, but first prompts user; if user's response does not begin
301with a y, skip the exec. The \f(CW\*(C`;\*(C'\fR must be passed as
302a distinct argument, so it may need to be surrounded by whitespace and/or
303quoted from interpretation by the shell using a backslash (just as with
304using \f(CWfind(1)\fR).
305.ie n .IP """\-eval EXPR""" 4
306.el .IP "\f(CW\-eval EXPR\fR" 4
307.IX Item "-eval EXPR"
308Has the perl script \fIeval()\fR the \s-1EXPR\s0.
309.ie n .IP """\-ls""" 4
310.el .IP "\f(CW\-ls\fR" 4
311.IX Item "-ls"
312Simulates \f(CW\*(C`\-exec ls \-dils {} ;\*(C'\fR
313.ie n .IP """\-tar FILE""" 4
314.el .IP "\f(CW\-tar FILE\fR" 4
315.IX Item "-tar FILE"
316Adds current output to tar-format \s-1FILE\s0.
317.ie n .IP """\-cpio FILE""" 4
318.el .IP "\f(CW\-cpio FILE\fR" 4
319.IX Item "-cpio FILE"
320Adds current output to old-style cpio-format \s-1FILE\s0.
321.ie n .IP """\-ncpio FILE""" 4
322.el .IP "\f(CW\-ncpio FILE\fR" 4
323.IX Item "-ncpio FILE"
324Adds current output to \*(L"new\*(R"\-style cpio-format \s-1FILE\s0.
325.PP
326Predicates which take a numeric argument N can come in three forms:
327.PP
328.Vb 3
329\& * N is prefixed with a +: match values greater than N
330\& * N is prefixed with a -: match values less than N
331\& * N is not prefixed with either + or -: match only values equal to N
332.Ve
333.SH "SEE ALSO"
334.IX Header "SEE ALSO"
335find