App::PipeFilterA distribution of shell pipeline filters | |
Download |
App::PipeFilter Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Publisher Name:
- Rocco Caputo
- Publisher web site:
- http://search.cpan.org/~apocal/
App::PipeFilter Tags
App::PipeFilter Description
A distribution of shell pipeline filters App::PipeFilter is a distribution of shell pipeline filters designed to work with structured data like JSON rather than whitespace separated fields.For example, jcut is a simple version of cut(1) that understands JSON objects rather than whitespace separated fields. % head -1 sample.json {"network":"freenode","channel":"#perl","nick":"dngor","karma":"120"} % jcut -o network -o channel < eg/sample.json | sort | uniq {"network":"efnet","channel":"#perl"} {"network":"efnet","channel":"#poe"} {"network":"efnet","channel":"#reflex"} {"network":"freenode","channel":"#perl"} {"network":"freenode","channel":"#poe"} {"network":"freenode","channel":"#reflex"} {"network":"magnet","channel":"#perl"} {"network":"magnet","channel":"#poe"} {"network":"magnet","channel":"#reflex"}The jsonpath filter supports more complex expressions using JSON::Path's variant of JSONPath. curl -s 'http://api.duckduckgo.com/?q=poe&o=json' | jsonpath -o '$..Topics.*.FirstURL' -o '$..Topics.*.Text' | grep -i perl | jmap -i col0 -o url -i col1 -o title | json2yaml --- title: Perl Object Environment, a library for event driven multitasking for the Perl programming language url: http://duckduckgo.com/Perl_Object_Environment Requirements: · Perl
App::PipeFilter Related Software