Skip to content

Instantly share code, notes, and snippets.

@erenon
Created December 9, 2010 12:31
Show Gist options
  • Save erenon/734668 to your computer and use it in GitHub Desktop.
Save erenon/734668 to your computer and use it in GitHub Desktop.
Checks the digit resoult
#!/bin/bash
wget http://home.mit.bme.hu/~laczko/digit_eredmenyek.pdf -N -q
if [ -e "digit_md5" ]; then
md5sum digit_md5 --status -c
if [ $? != 0 ]; then
echo "===FRISSÜLT==="
fi
else
echo "Új md5 generálása..."
md5sum digit_eredmenyek.pdf > digit_md5
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment