Mercurial > hg > cc > azure
view master/bin/shrinkJSON.sh @ 66:b04870ab3035
don't over-count duplicate URIs in multiple properties, produce composite keys instead
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Thu, 04 Jun 2020 16:10:55 +0000 |
parents | bba589cab837 |
children |
line wrap: on
line source
#!/bin/bash # Shrink json output from worker to remove unnecessary characters egrep -v '^#' $1| jq . |sed 's/^ *//;s/^"\([-0-9A-Za-z]*\)": "\?/\1:/;s/"\?,\?$//'