You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/find_pl/find_pl
+22-11Lines changed: 22 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
use strict;
5
5
use File::Find;
6
6
use Cwd ();
7
+
use POSIX qw(getpwuid getgrgid);
7
8
8
9
subusage {
9
10
print<<"USAGE";
@@ -13,20 +14,20 @@ EXPRESSION
13
14
The part of the command line after the list of starting points is the expression.
14
15
This is a kind of query specification describing how we match files and what we do with the files that were matched. An expression is composed of a sequence of things:
15
16
16
-
Tests Tests return a true or false value, usually on the basis of some property of a file we are considering. The -empty test for example is true only
17
-
when the current file is empty.
17
+
Tests Tests return a true or false value, usually on the basis of some property of a file we are considering. The -empty test for example is true only
18
+
when the current file is empty.
18
19
19
-
Actions
20
-
Actions have side effects (such as printing something on the standard output) and return either true or false, usually based on whether or not they
21
-
are successful. The -print action for example prints the name of the current file on the standard output.
20
+
Actions
21
+
Actions have side effects (such as printing something on the standard output) and return either true or false, usually based on whether or not they
22
+
are successful. The -print action for example prints the name of the current file on the standard output.
22
23
23
-
Global options
24
-
Global options affect the operation of tests and actions specified on any part of the command line. Global options always return true. The -depth
25
-
option for example makes find traverse the file system in a depth-first order.
24
+
Global options
25
+
Global options affect the operation of tests and actions specified on any part of the command line. Global options always return true. The -depth
26
+
option for example makes find traverse the file system in a depth-first order.
26
27
27
-
Operators
28
-
Operators join together the other items within the expression. They include for example -o (meaning logical OR) and -a (meaning logical AND).
29
-
Where an operator is missing, -a is assumed.
28
+
Operators
29
+
Operators join together the other items within the expression. They include for example -o (meaning logical OR) and -a (meaning logical AND).
30
+
Where an operator is missing, -a is assumed.
30
31
31
32
GLOBAL OPTIONS
32
33
-maxdepth LEVELS
@@ -60,6 +61,12 @@ TESTS
60
61
-name PATTERN
61
62
File name matches specified glob wildcard pattern (just as with using find).
62
63
64
+
-nogroup
65
+
No group corresponds to file's numeric group ID.
66
+
67
+
-nouser
68
+
No user corresponds to file's numeric user ID.
69
+
63
70
-path PATTERN
64
71
File path matches specified glob wildcard pattern (just as with using find).
0 commit comments