Skip to content

Instantly share code, notes, and snippets.

@mautematico mautematico/
Last active Jan 23, 2016

What would you like to do?
cat posts.json | jq -c -M '.[]' | sed 's/\\"/\\\\"/g' | \
while read single_post;
post_id=$(echo $single_post | jq '.ID');
echo $single_post > post/$post_id.json;
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.