git.shiar.nl
/
barcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bf1b7f
)
json example alternative without jq
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 8 Sep 2019 14:12:06 +0000
(16:12 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 9 Sep 2019 22:37:53 +0000
(
00:37
+0200)
External dependency not usually installed, so describe separately.
barcat
patch
|
blob
|
history
diff --git
a/barcat
b/barcat
index b6f60ef2a6b36355c1de63f3d6a96a935fe108ea..d3ba821a27802df355ad070a43633d828fba3c16 100755
(executable)
--- 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<jq> to process JSON
+and replace the manual selection by C<< jq '.[].year' >>.
Pokémon height comparison: