On Thu, 22 Sep 2005, Angus Leeming wrote: > Christian, this is crying out for a little script. Something like: > > #! /bin/sh > > TMP="hack.$$" > > for file in `find wiki.d -name '*'` > do > sed '[EMAIL PROTECTED]://wiki.lyx.org/[EMAIL PROTECTED]:@g;[EMAIL > PROTECTED]:@uploads:@g' \ > "$file" > "$TMP" > cmp -s "$file" "$TMP" && continue > diff -u "$file" "$TMP" > mv -i "$TMP" "$file > done > > rm -f "$TMP" > > > What do I miss?
Only that the above would also change all references in old versions of each page... ideally I'd like to preserve an accurate history. Anyway, I've just done it manually (it was pretty quick since I used Emacs/pmwiki-mode). In the process I also fixed some other minor problems that also will help with the wiki upgrade process - so it's all been for the good actually. cheers /Christian -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr