[Pmwiki-users] Expiring page revisions.
Wed Oct 1 07:28:57 CDT 2003
On Wed, Oct 01, 2003 at 02:58:14AM -0300, Pedro Miller Rabinovitch wrote:
> [user at host] cat wiki.d/Group.MyPage | grep -ev "^diff=" | grep -ev "^rev=" >
> [user at host] echo "rev=1" >> wiki.d/Group.MyPage
> (the above is untested. Take with a kilo of salt, please. Patrick, is this
Two problems: First, the above commands do not lock the Wiki, which
means that normal editing via the web can interfere with them. Second,
you cannot just make a file both the source and destination of such a
filter. If it's greater than the internal buffer size of the file
operation, you will start overwriting it before you've completely
In other words, don't do it like this. You run the risk of really
messing up your data.
More information about the pmwiki-users