[Remind-Fans] Please test Remind 3.1.9-to-be

Dougie Lawson dl1ims at gmail.com
Thu Apr 22 15:54:20 EDT 2010


On 22 April 2010 18:14, David F. Skoll <dfs at roaringpenguin.com> wrote:
> Well, I'm following the UNIX tradition of small tools (and also being lazy...)
>
> Copying existing files and then overwriting original files is a
> non-starter.  I will never introduce a feature into Remind that can
> overwrite your original files.
>
> But you can, of course, achieve this with a simple shell wrapper.  Assuming
> .reminders is a directory, then a script like this would work:
>
> #!/bin/sh
> rem -j || exit 1
> for i in $HOME/.reminders/*.rem ; do
>    test -f $i.purged && mv $i $i.notpurged && mv $i.purged $i
> done
>
> Your second request can be achieved as follows:
>
> #!/bin/sh
> rem -j || exit 1
> for i in $HOME/.reminders/*.purged ; do
>    grep -v '^#!P: Expired:' $i > $i.$$ && mv $i.$$ $i
> done
>
> If you wanted to combine them into one script, you'd want to do the grep
> step first and the renaming afterwards.
>

Brilliant, just the job. Thank you.

-- 
http://twitter.com/DougieLawson
http://facebook.com/Dougie1963



More information about the Remind-fans mailing list