Skip to content

Greppable

Aleks-Daniel Jakimenko-Aleksejev edited this page Aug 8, 2019 · 9 revisions

This is an IRC bot for grepping through the module ecosystem. It can be addressed by its full name ('greppable6') or its short name ('grep').

Functionally it does git grep -I --perl-regexp --line-number -e … inside perl6-all-modules repository. You can do it yourself just as easily, with the only exception that you won't get links to the sources.

You can find some extra examples in tests: greppable.t

⚠ please note that it takes a perl5 regex, not something else.

Usage examples

Basics

<eveo> greppable6: storage_test333
<greppable6> eveo, 3 lines, 1 modules: https://gist.github.com/76a6e4ae6474dadee2bc0abb154f0892 <eveo> Some module created that in my ~/ :S how rude

<AlexDaniel> greppable6: LEAVE
<greppable6> AlexDaniel, 474 lines, 85 modules: https://gist.github.com/d75cc278d6cfd295e3c22778855a304e

Case-insensitive search

<AlexDaniel> greppable6: (?i)password
<greppable6> AlexDaniel, 1437 lines, 130 modules: https://gist.github.com/d507c8c3cd9894af70b15948531e6328

Searching for filenames

<AlexDaniel> treegrep: foo
<greppable6> AlexDaniel, https://gist.github.com/789a17183d5972ccc745ac85b11817f9