FINDRULE(1)
β¨ FINDRULE(1) β findrule β¨
okay so bestie, welcome to the User Contributed Perl Documentation page for findrule, the command-line wrapper to File::Find::Rule. Itβs giving βtiny CLI, big module familyβ energy, fr fr. π
π NAME π
findrule β command line wrapper to File::Find::Rule
πΈ USAGE πΈ
findrule [path...] [expression]
π¦ DESCRIPTION π¦
findrule mostly borrows the interface from GNU find(1) to provide a command-line interface onto the File::Find::Rule heirarchy of modules. No cap, thatβs the whole vibe. π«Ά
The syntax for expressions is the rule name, preceded by a dash, followed by an optional argument. If the argument is an opening parenthesis it is taken as a list of arguments, terminated by a closing parenthesis. Literally that simple, bestie. β¨
Some examples, because examples are iconic:
find -file -name ( foo bar )
files named foo or bar, below the current directory.
find -file -name foo -bar
files named foo, that have pubs (for this is what our ficticious bar clause specifies), below the current directory. keeping the typo, itβs part of the lore π
find -file -name ( -bar )
files named -bar, below the current directory. In this case if weβd have omitted the parenthesis it would have parsed as a call to name with no arguments, followed by a call to -bar.
π Supported switches π
Real talk: the author says βIβm very slack.β π Please consult the File::Find::Rule manpage for now, and prepend - to the commands that you want.
π Extra bonus switches π
findrule automatically loads all of your installed File::Find::Rule::* extension modules, so check the documentation to see what those would be. Itβs giving bonus DLC, honestly. π¦
π AUTHOR π
Richard Clamp <richardc@unixbeard.net> from a suggestion by Tatsuhiko Miyagawa
π COPYRIGHT π
Copyright (C) 2002 Richard Clamp. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
β SEE ALSO β
File::Find::Rule
π Thatβs the whole FINDRULE(1) situation, bestie β shipped with perl v5.42.0, dated 2025-06-11. Go off. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-File-Find-Rule 0.350.0-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms