On 22 April 2010 18:14, David F. Skoll <[email protected]> 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 _______________________________________________ Remind-fans mailing list [email protected] http://lists.whatexit.org/mailman/listinfo/remind-fans
