Mercurial > hg > cc > azure
view master/bin/shrinkJSON.sh @ 21:a214fd3a8001
use /var/data, don't store but include subproc _inside_ tryread
| author | Henry S. Thompson <ht@markup.co.uk> |
|---|---|
| date | Sun, 21 Oct 2018 12:41:10 +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/"\?,\?$//'
