Skip to content

Commit

Permalink
added script to diff all.bib and readings.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eringrant committed Feb 21, 2019
1 parent db27d1d commit 36320d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions diff_refs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

bibtex=$(grep -o "{[a-z0-9]*," all.bib | cut -f2 -d"{" | cut -f1 -d"," | sort)
md=$(grep -o "\[@[a-z0-9]*" readings.md | cut -f2 -d"@" | sort)

echo "The following are not common between all.bib and readings.md:"
echo ""
echo ${bibtex[@]} ${md[@]} | tr ' ' '\n' | sort | uniq -u

0 comments on commit 36320d3

Please sign in to comment.