[pmwiki-users] Diff/merge-friendly PageStore format (linebreaks)
Peter & Melodye Bowers
pbowers at pobox.com
Thu Mar 13 01:14:23 CDT 2008
> > But a few months ago someone posted a script on this list
> that they used to
> > move page text into text files for shell-tool processing.
> I just took a
> This would be interesting as a filter for the diff tool to be at
> least able to compare data.
===(snip - wiki2txt - snip)===
for i in "$@"
grep '^text=' "$i" | sed -e 's/^text=//' -e 's/%0a/\n/g' -e
I've only tried it in a cygwin context and only tested it on a few pages,
but it should be pretty close to what you're looking for... You can run it
over many files at once like this:
$ cd wiki.d
$ mkdir text
$ /path/to/wiki2txt GroupA.*
It will create a bunch of files in the text/ directory called
GroupA.Page1.txt and etc.
This is very similar to the script that was posted before IFIRC but you'd
still be better off with a tested and proven solution...
More information about the pmwiki-users