Added VIM tools, and help pages to all scripts missing one

This commit is contained in:
ville rantanen
2015-04-02 12:07:42 +03:00
parent 85928b7326
commit 029e2f5ad0
15 changed files with 85 additions and 18 deletions

View File

@@ -1,8 +1,11 @@
#!/bin/bash
if [ -z "$1" ]
then echo Expecting doi code
exit
fi
function helpexit() {
echo Print out bibtex entry from a DOI.
echo Give DOI code as the argument
exit
}
[[ -z "$1" ]] && helpexit
[[ "$1" = "-h" ]] && helpexit
curl -LH "Accept: text/bibliography; style=bibtex" "http://dx.doi.org/$1"