Newer
Older
psnj-split - Split a list of JSON objects across multiple files
*psnj-split* reads a newline-seprated list of json objects on its standard input and copies
each object to a file +PREFIX_s.json+ where +s+ is the value associated to
the (json) name _name_.
== EXIT STATUS
== EXAMPLE
Faced with input
----
{ "name": "foo", "bar": "lorem ipsum dolor" }
{ "name": "bar", "bar": "dolor sit amet" }
{ "name": "foo", "bar": "consectetur" }
----
+psnj-split -p frobnify+ produces two files with the following content: