Skip to content

Instantly share code, notes, and snippets.

@DerfOh

DerfOh/parsejson

Created Dec 14, 2016
Embed
What would you like to do?
simple example of using awk to parse a json output
echo "$status" | awk -F"[,:]" '{for(i=1;i<=NF;i++){if($i~/completed\042/){print $(i+1)} } }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment