Skip to content

Instantly share code, notes, and snippets.

@Wikinaut
Last active July 3, 2020 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wikinaut/288844b348273cdb39ab7e668622bc72 to your computer and use it in GitHub Desktop.
Save Wikinaut/288844b348273cdb39ab7e668622bc72 to your computer and use it in GitHub Desktop.
Commandline-Suche im Bundeseinheitlichen Bußgeldkatalog (BKAT)
# Aufruf: bkat.sh <needle>
if [ ! -f "bkat.txt" ] ; then
if [ ! -f "bkat.pdf" ] ; then
wget -O bkat.pdf "https://www.kba.de/DE/ZentraleRegister/FAER/BT_KAT_OWI/bkat_owi_28_04_2020_pdf.pdf?__blob=publicationFile&v=7"
fi
pdftotext -layout bkat.pdf bkat.txt
fi
egrep -A9 -i --color=always "$1" bkat.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment