Mercurial > hg > cc > azure
annotate master/bin/shrinkJSON.sh @ 17:2a2c1fb03c54
first cut at http/https real trial, with month and year last-modified info too
| author | Henry S. Thompson <ht@markup.co.uk> |
|---|---|
| date | Fri, 19 Oct 2018 11:36:31 +0000 |
| parents | bba589cab837 |
| children |
| rev | line source |
|---|---|
|
13
bba589cab837
shrinkJSON.sh: minimise "jq ." output
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
1 #!/bin/bash |
|
bba589cab837
shrinkJSON.sh: minimise "jq ." output
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
2 # Shrink json output from worker to remove unnecessary characters |
|
bba589cab837
shrinkJSON.sh: minimise "jq ." output
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
3 egrep -v '^#' $1| jq . |sed 's/^ *//;s/^"\([-0-9A-Za-z]*\)": "\?/\1:/;s/"\?,\?$//' |
