#!/bin/bash if [ -z "$1" ] then echo Expecting doi code exit fi curl -LH "Accept: text/bibliography; style=bibtex" "http://dx.doi.org/$1"