remove-reminder.sh (267B)
1 #!/bin/bash 2 3 set -x 4 grep -i '^Message-id' | cut -d ' ' -f2 | while read l; 5 do 6 echo "will delete" 7 ~/bin/find-reminder.sh $l 8 echo "last chance to abort..." 9 sleep 2 10 atrm `~/bin/find-reminder.sh $l | cut -f1` 11 #TODO remove the files from ~/logs/reminders 12 done