1FINDRULE(1) User Contributed Perl Documentation FINDRULE(1)
2
3
4
6 findrule - command line wrapper to File::Find::Rule
7
9 findrule [path...] [expression]
10
12 "findrule" mostly borrows the interface from GNU find(1) to provide a
13 command-line interface onto the File::Find::Rule heirarchy of modules.
14
15 The syntax for expressions is the rule name, preceded by a dash, fol‐
16 lowed by an optional argument. If the argument is an opening parenthe‐
17 sis it is taken as a list of arguments, terminated by a closing paren‐
18 thesis.
19
20 Some examples:
21
22 find -file -name ( foo bar )
23
24 files named "foo" or "bar", below the current directory.
25
26 find -file -name foo -bar
27
28 files named "foo", that have pubs (for this is what our ficticious
29 "bar" clause specifies), below the current directory.
30
31 find -file -name ( -bar )
32
33 files named "-bar", below the current directory. In this case if we'd
34 have omitted the parenthesis it would have parsed as a call to name
35 with no arguments, followed by a call to -bar.
36
37 Supported switches
38
39 I'm very slack. Please consult the File::Find::Rule manpage for now,
40 and prepend - to the commands that you want.
41
42 Extra bonus switches
43
44 findrule automatically loads all of your installed File::Find::Rule::*
45 extension modules, so check the documentation to see what those would
46 be.
47
49 Richard Clamp <richardc@unixbeard.net> from a suggestion by Tatsuhiko
50 Miyagawa
51
53 Copyright (C) 2002 Richard Clamp. All Rights Reserved.
54
55 This program is free software; you can redistribute it and/or modify it
56 under the same terms as Perl itself.
57
59 File::Find::Rule
60
61
62
63perl v5.8.8 2006-06-01 FINDRULE(1)