Skip to content
Joel Shaikin edited this page Jan 25, 2017 · 2 revisions

Example 1

#!/bin/bash

filename="$1" cat $filename | python -c 'import sys; import simplejson as json; print json.dumps( json.loads( sys.stdin.read() ), sort_keys=True, indent=4)' | grep name | awk '{print $2}' | sed -e 's/^"//g' | sed -e 's/",$//g'

Clone this wiki locally