From: Mischa POSLAWSKY Date: Sun, 8 Sep 2019 14:12:06 +0000 (+0200) Subject: json example alternative without jq X-Git-Tag: v1.05~22 X-Git-Url: http://git.shiar.nl/barcat.git/commitdiff_plain/67f0129e0e80e700854f499eb459a18e7c03524e json example alternative without jq External dependency not usually installed, so describe separately. --- diff --git a/barcat b/barcat index b6f60ef..d3ba821 100755 --- a/barcat +++ b/barcat @@ -349,7 +349,10 @@ Any kind of database query with counts, preserving returned alignment: External datasets, like movies per year: curl https://github.com/prust/wikipedia-movie-data/raw/master/movies.json | - jq '.[].year' | uniq -c | barcat + perl -054 -nlE 'say if s/^"year"://' | uniq -c | barcat + +But please get I to process JSON +and replace the manual selection by C<< jq '.[].year' >>. Pokémon height comparison: