Skip to content

Instantly share code, notes, and snippets.

@riansanderson
Forked from shachafkarvat/gist:5446649
Created October 31, 2013 06:31
Show Gist options
  • Select an option

  • Save riansanderson/7245127 to your computer and use it in GitHub Desktop.

Select an option

Save riansanderson/7245127 to your computer and use it in GitHub Desktop.
JSON=`cat $SOURCE|python -mjson.tool`
# Proccess JSON into array
PARSED=(`echo $JSON| sed -e 's/[{}]/''/g'| awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/:/ /1'| awk -F" " '{ print $2 }'`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment