#!/bin/sh exit failed() { notify-send -t 10000 -u critical "Updater" "PG list NOT updated!" } finished(){ notify-send -t 10000 "Updater" "PG list update sucessfully" } cd ~flo/stuff/ wget http://peerguardian.sourceforge.net/lists/p2p.php -O level1.7z && 7z x level1.7z && cat level1 | grep -vi moviex.info > p2p.pg && finished || failed rm "level1.7z" rm "level1"