check-with-bloom-filter - Check with bloom filter
This document describes version 0.007 of check-with-bloom-filter (from Perl distribution App-BloomUtils), released on 2020-05-24.
Usage:
% check-with-bloom-filter [--debug] [--log-level=level] [--page-result[=program]] [--quiet] [--trace] [--verbose] <items> ...
You supply the bloom filter in STDIN, items to check as arguments, and this utility will print lines containing 0 or 1 depending on whether items in the arguments are tested to be, respectively, not in the set (0) or probably in the set (1).
* marks required options.
*
Items to check (JSON-encoded).
See --items.
--items
Items to check.
Can be specified multiple times.
Shortcut for --log-level=debug.
Set log level.
Shortcut for --log-level=error.
Shortcut for --log-level=trace.
Shortcut for --log-level=info.
Filter output through a pager.
Display help message and exit.
Display program's version and exit.
This script has shell tab completion capability with support for several shells.
To activate bash completion for this script, put:
complete -C check-with-bloom-filter check-with-bloom-filter
in your bash startup (e.g. ~/.bashrc). Your next shell session will then recognize tab completion for the command. Or, you can also directly execute the line above in your shell to activate immediately.
It is recommended, however, that you install modules using cpanm-shcompgen which can activate shell completion for scripts immediately.
To activate tcsh completion for this script, put:
complete check-with-bloom-filter 'p/*/`check-with-bloom-filter`/'
in your tcsh startup (e.g. ~/.tcshrc). Your next shell session will then recognize tab completion for the command. Or, you can also directly execute the line above in your shell to activate immediately.
It is also recommended to install shcompgen (see above).
For fish and zsh, install shcompgen as described above.
Please visit the project's homepage at https://metacpan.org/release/App-BloomUtils.
Source repository is at https://github.com/perlancar/perl-App-BloomUtils.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-BloomUtils
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020, 2018 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::BloomUtils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::BloomUtils
CPAN shell
perl -MCPAN -e shell install App::BloomUtils
For more information on module installation, please visit the detailed CPAN module installation guide.