view master/bin/shrinkJSON.sh @ 31:580cc12c9712

partway to rework after failure of mergedWhich.x64700
author Henry S. Thompson <ht@markup.co.uk>
date Mon, 19 Nov 2018 18:33:17 +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/"\?,\?$//'