Ruby one-liner

Posted . Visible to the public.

Filter JSON objects stream

cat haystack.json | ruby -rjson -pe 'o = JSON.parse($_); next unless o["needle"]'
Ev Dolzhenko
Posted by Ev Dolzhenko to Ev's deck (2015-08-25 14:03)