From 6c057bc4660fb0dadd20649b0f53437cb1019cd0 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 21 Nov 2016 20:36:53 -0800 Subject: [bin] Dummy script to prettify JSON output. --- bin/json-pretty | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/json-pretty (limited to 'bin/json-pretty') diff --git a/bin/json-pretty b/bin/json-pretty new file mode 100755 index 0000000..e536fd0 --- /dev/null +++ b/bin/json-pretty @@ -0,0 +1,10 @@ +#!/bin/bash + +URL=$1 + +if [[ -z "${URL}" ]]; then + echo "usage: $0 " + exit 1 +fi + +curl -s "${1}" | python -m json.tool -- cgit 1.4.1