From 67f0129e0e80e700854f499eb459a18e7c03524e Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 8 Sep 2019 16:12:06 +0200 Subject: [PATCH] json example alternative without jq External dependency not usually installed, so describe separately. --- barcat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 2.30.0