Skip to content

Instantly share code, notes, and snippets.

@kala13x
Created March 30, 2020 14:38
Show Gist options
  • Save kala13x/cd009034f275e7e81cc83cefb4d10777 to your computer and use it in GitHub Desktop.
Save kala13x/cd009034f275e7e81cc83cefb4d10777 to your computer and use it in GitHub Desktop.
#!/bin/bash
intervalSec=10
oldValue=0
while [ true ]
do
newValue=$(curl https://stopcov.ge|grep "დადასტურებული"|cut -d ">" -f 3|cut -d "<" -f 1)
if [ $oldValue != $newValue ]
then
notify-send "Cases in Georgia:" $newValue
oldValue=$newValue
fi
sleep $intervalSec
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment