Integrity check

Now I got this super-bibliography with thousands of entries and want to know if all entries are ok, or if one contains a weird character which is displayed incorrectly or even inhibits a successful compilation by LaTeX/BibTeX. How do I do that? Probably the easiest way is to run the following LaTeX file


through the following script:

charset=$(file -bi bibliography.bib | awk '{print $2}')
if [ $charset == charset=utf8 ]; then
  echo "Encoding ok"
  echo "Non UTF character detected"
errors=$(rubber --pdf --quiet biblist.tex 2>&1)
if [ -z "$errors" ]; then
  echo "Compilation successful"
  echo "Compilation failed"
  echo $errors
rubber --pdf --clean biblist.tex