view master/bin/shrinkJSON.sh @ 20:0f4a0f4e38d4

try to use dateparser.parse on non-standard last-modified
author Henry S. Thompson <ht@markup.co.uk>
date Sat, 20 Oct 2018 16:13:58 +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/"\?,\?$//'