Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- inning=$(lynx -nonumbers -dump https://www.thescore.com/mlb/events | grep -iA5 cubs$
- if [[ -z "$innings" ]];
- then
- echo "No games found." > ~/bin/cubsscore.temp
- else
- echo $inning > ~/bin/cubsscore.temp
- echo : >> ~/bin/cubsscore.temp
- lynx -nonumbers -dump https://www.thescore.com/mlb/events | grep -iA5 cubs | grep -$
- echo - >> ~/bin/cubsscore.temp
- lynx -nonumbers -dump https://www.thescore.com/mlb/events | grep -iA5 cubs | grep -$
- fi
- notify-send "$(cat ~/bin/cubsscore.temp | xargs)"
- rm ~/bin/cubsscore.temp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement