Mercurial > hg > cc > azure
view master/bin/shrinkJSON.sh @ 32:9342f6269edf
rewritten to be faster, maybe, and avoid earlier bug
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Tue, 20 Nov 2018 10:31:05 +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/"\?,\?$//'