Skip to content

Instantly share code, notes, and snippets.

@blahah
Last active April 19, 2017 06:50
Show Gist options
  • Save blahah/c692086e5206724689673f3f001d4031 to your computer and use it in GitHub Desktop.
Save blahah/c692086e5206724689673f3f001d4031 to your computer and use it in GitHub Desktop.
split crossref openretractions into separate files for API
cat ../crossref_processed.json | while read entry
do
doi=$(echo $entry | jq -r '.doi')
echo creating "$doi"
mkdir -p "$doi"
echo $entry > "$doi/data.json"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment