App-Greple
view release on metacpan or search on metacpan
- callback function can return "undef" to do nothing
- greple -Mline accept negative value w/o -L option
9.18 2024-12-10T12:19:11Z
- fix bug of collecting module name from argv
- allow CRLF in -f pattern file
9.1703 2024-11-08T11:58:43Z
- --{man,show,path} option looks last module in the command line
9.1702 2024-10-25T02:18:07Z
- fix bug of exporting &App::Greple::Common::FILELABEL
9.1701 2024-10-14T23:48:28Z
- update access to common resources
- add summary section
lib/App/Greple/select.pm view on Meta::CPAN
current directory.
greple -Mdig -Mselect --suffix=pl,pm foobar --dig .
This is almost equivalent to the next command using B<--dig> option
with extra conditional expression for B<find> command.
greple -Mdig foobar --dig . -name '*.p[lm]'
The problems is that the above command does not search perl command
script without suffixes. Next command looks for both files looking at
C<#!> (shebang) line.
greple -Mdig -Mselect --suffix=pl,pm --shebang perl foobar --dig .
Generic option B<--select-name>, B<--select-path> and B<--select-data>
take regular expression and works for arbitrary use.
=head2 ORDER and DEFAULT
Besides normal inclusive rules, there is exclusive rules which start
( run in 0.393 second using v1.01-cache-2.11-cpan-64827b87656 )