Created
August 10, 2014 02:42
-
-
Save ssokolow/b4851834851ab6010f1c to your computer and use it in GitHub Desktop.
Expect script for deleting all missed instances of TaskWarrior tasks which recur daily
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect -- | |
spawn task "( recur.is:1d or recur.is:daily )" due.before:now status:pending delete | |
for {} 1 {} { | |
expect { | |
"Permanently delete task" { send "y\n"} | |
"This is a recurring task. Do you want to delete all pending recurrences of this same task? (yes/no)" { send "n\n"} | |
eof { exit } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment