NAME

jgrep - filters output by pattern matching against JSON object fields

VERSION

version 0.03

SYNOPSIS

jgrep [-v] [-i] -m field1=pattern -m field2=pattern [/path/to/file1 /path/to/file2 ...]

DESCRIPTION

Filters JSON-formatted line input from supplied file path(s) or standard input if not provided.

OPTIONS

--match | -m

Only include lines if the value of field matches the regular expression pattern. If the field is not present in the object, its value is treated as an empty string. This switch may be used multiple times.

--ignore-case | -i

Ignore case when performing matching.

--inverse | -v

Invert the meaning of patterns provided by --match.

AUTHOR

Jeff Ober <sysread@fastmail.fm>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Jeff Ober.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.