gnumatt

If you ever wanted to

· Matt M

If you ever wanted to update all your posts in Blogger to make some sweeping change, like oh say converting to XHTML which means you need to convert
tags to
. You might try the following:

  1. Change your template to:
<$BlogItemBody$> <$BlogItemBody$> 1. Change your Settings so it publishes the last 999 days of entries. Also change your Blog filename to something like totalarchive1. When you publish you now have a file called totalarchivetotalarchive with every post (hopefully) and all the entry ids1. Now create a perl script which reads through each entry, grabs the id and makes the text changes. In this case a simple <[Bb][Rr]> to
conversion.1. Next use a module like Aaron's excellent Blogger.pmAaron's excellent Blogger.pm to call editPosteditPost to update each entry.1. Undo your Settings changes and republish

Boy can I gloss over details. At any rate, when I’m not so tired I’ll put together a perl script which does just this. This was inspired by Jako’s postJako’s post and the fact that at one point I converted by hand all Dave’s entries to XMLall Dave’s entries to XML.

Boy can I gloss over details. At any rate, when I’m not so tired I’ll put together a perl script which does just this. This was inspired by Jako’s post and the fact that at one point I converted by hand all Dave’s entries to XML.