Last active
August 29, 2015 13:57
-
-
Save rwstauner/9836425 to your computer and use it in GitHub Desktop.
Use cpangrep to search pod headings and get a list of distributions to reindex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cpangrep '=head1\s{2,}NAME\b' | |
147 results in 23 files. Showing first 23 results. | |
BLX/XSDSQL_20130411/xsdsql/lib/blx/xsdsql/connection.pm | |
130: | |
131:=head1 NAME | |
→ 115 more files matched in XSDSQL_20130411. | |
CPANEL/cPanel-TaskQueue-0.606/lib/cPanel/TaskQueue.pod | |
1: | |
2:=head1 NAME | |
→ 4 more files matched in cPanel-TaskQueue-0.606. | |
CBERNING/DBIx-XML-DataLoader-1.1b/DataLoader.pm | |
455: | |
456:=head1 NAME | |
→ 2 more files matched in DBIx-XML-DataLoader-1.1b. | |
CJFIELDS/BioPerl-1.6.923/Bio/Tools/Analysis/Protein/ELM.pm | |
13: | |
14:=head1 NAME | |
→ 1 more file matched in BioPerl-1.6.923. | |
MMUELLER/Padre-Plugin-HG-0.17/lib/Padre/Plugin/HG/LogView.pm | |
2: | |
3:=head1 NAME | |
→ 1 more file matched in Padre-Plugin-HG-0.17. | |
PERFSONAR/perfSONAR_PS-Services-PingER-0.09/webadmin/admin_html/secure-cgi/configure.pl | |
2: | |
3:=head1 NAME configure.pl | |
4: | |
DMPETIT/Tk-Bounded-1.0.2/lib/Tk/bound.pod | |
15: | |
16:=head1 NAME | |
PVHP/Pod2VMSHlp-1.02/t/finibusi.pod | |
1: | |
2:=head1 NAME | |
SLSTAT/Net-Msmgr-0.16/Msmgr/Switchboard.pm | |
13: | |
14:=head1 NAME | |
JMGDOC/ODF-lpOD-1.121/lpod_test | |
5: | |
6:=head1 NAME | |
JNOLAN/Data-Walker-1.05/Data/Walker.pm | |
42: | |
43:=head1 NAME | |
AHICOX/Tk-Preferences-0.2/Preferences.pod | |
1:=head1 NAME | |
CJFIELDS/BioPerl-Network-1.006902/lib/Bio/Network/IO.pm | |
6: | |
7:=head1 NAME | |
LEIJON/Data-Variant-0.04/lib/Data/Variant.pm | |
7: | |
8:=head1 NAME | |
RKIES/Tk-Browser-0.82b/Browser/LibSymbolRef.pm | |
12: | |
13:=head1 NAME | |
MJD/ModuleBundle-0.01/ModuleBundle.pm | |
31: | |
32:=head1 | |
33:NAME | |
JNOLAN/Chatbot-Eliza-1.04/Chatbot/Eliza.pm | |
30: | |
31:=head1 NAME | |
TEEJAY/Data-Iterator-EasyObj-0.01/EasyObj.pm | |
115: | |
116:=head1 | |
117: | |
118:NAME Data::Iterator::EasyObj - Turn an array of arrays into an iterator object | |
KRYDE/Perl-Critic-Pulp-80/t/ProhibitDuplicateHeadings.t | |
121: | |
122:=head1 NAME | |
123:' ], | |
ESM/Device-LaCrosse-WS23xx-0.08/lib/Device/LaCrosse/WS23xx.pm | |
460: | |
461:=head1 NAME | |
TPEDERSE/Text-NSP-1.27/doc/TODO.pod | |
1:=head1 NAME | |
THALJEF/Perl-Critic-1.121/t/Documentation/RequirePackageMatchesPodName.run | |
232: | |
233:=head1 NAME | |
MRAMBERG/Date-Holidays-NO-0.2/lib/Date/Holidays/NO.pm | |
33: | |
34:=head1 NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| perl -lne 's-([^/]+)/([^/]+)/(.+)- {"and": [ {"term": {"author": "$1"}}, {"term":{ "name": "$2"}} ]}- and push @f, $_; END { print qq|{"size": ${\scalar @f}, "fields": ["download_url"], "filter": {"or": [\n|, join(",\n", @f), qq|\n ]}} | }' | |
{"size": 23, "fields": ["download_url"], "filter": {"or": [ | |
{"and": [ {"term": {"author": "BLX"}}, {"term":{ "name": "XSDSQL_20130411"}} ]}, | |
{"and": [ {"term": {"author": "CPANEL"}}, {"term":{ "name": "cPanel-TaskQueue-0.606"}} ]}, | |
{"and": [ {"term": {"author": "CBERNING"}}, {"term":{ "name": "DBIx-XML-DataLoader-1.1b"}} ]}, | |
{"and": [ {"term": {"author": "CJFIELDS"}}, {"term":{ "name": "BioPerl-1.6.923"}} ]}, | |
{"and": [ {"term": {"author": "MMUELLER"}}, {"term":{ "name": "Padre-Plugin-HG-0.17"}} ]}, | |
{"and": [ {"term": {"author": "PERFSONAR"}}, {"term":{ "name": "perfSONAR_PS-Services-PingER-0.09"}} ]}, | |
{"and": [ {"term": {"author": "DMPETIT"}}, {"term":{ "name": "Tk-Bounded-1.0.2"}} ]}, | |
{"and": [ {"term": {"author": "PVHP"}}, {"term":{ "name": "Pod2VMSHlp-1.02"}} ]}, | |
{"and": [ {"term": {"author": "SLSTAT"}}, {"term":{ "name": "Net-Msmgr-0.16"}} ]}, | |
{"and": [ {"term": {"author": "JMGDOC"}}, {"term":{ "name": "ODF-lpOD-1.121"}} ]}, | |
{"and": [ {"term": {"author": "JNOLAN"}}, {"term":{ "name": "Data-Walker-1.05"}} ]}, | |
{"and": [ {"term": {"author": "AHICOX"}}, {"term":{ "name": "Tk-Preferences-0.2"}} ]}, | |
{"and": [ {"term": {"author": "CJFIELDS"}}, {"term":{ "name": "BioPerl-Network-1.006902"}} ]}, | |
{"and": [ {"term": {"author": "LEIJON"}}, {"term":{ "name": "Data-Variant-0.04"}} ]}, | |
{"and": [ {"term": {"author": "RKIES"}}, {"term":{ "name": "Tk-Browser-0.82b"}} ]}, | |
{"and": [ {"term": {"author": "MJD"}}, {"term":{ "name": "ModuleBundle-0.01"}} ]}, | |
{"and": [ {"term": {"author": "JNOLAN"}}, {"term":{ "name": "Chatbot-Eliza-1.04"}} ]}, | |
{"and": [ {"term": {"author": "TEEJAY"}}, {"term":{ "name": "Data-Iterator-EasyObj-0.01"}} ]}, | |
{"and": [ {"term": {"author": "KRYDE"}}, {"term":{ "name": "Perl-Critic-Pulp-80"}} ]}, | |
{"and": [ {"term": {"author": "ESM"}}, {"term":{ "name": "Device-LaCrosse-WS23xx-0.08"}} ]}, | |
{"and": [ {"term": {"author": "TPEDERSE"}}, {"term":{ "name": "Text-NSP-1.27"}} ]}, | |
{"and": [ {"term": {"author": "THALJEF"}}, {"term":{ "name": "Perl-Critic-1.121"}} ]}, | |
{"and": [ {"term": {"author": "MRAMBERG"}}, {"term":{ "name": "Date-Holidays-NO-0.2"}} ]} | |
]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment