#!/bin/bash

infile=a

jq -r '.response.docs[] | "\(.citation)"' $infile | gsed 's/[]["]//g;s/,/\n/g' | sed '/^null/d' > cites_BC.txt
jq -r '.response.docs[] | "\(.reference)"' $infile | gsed 's/[]["]//g;s/,/\n/g' | sed '/^null/d' > refs_BC.txt
