<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The WebZappr &#187; movabletype</title>
	<atom:link href="http://blog.webzappr.com/tag/movabletype/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.webzappr.com</link>
	<description>My Random Web Snippets</description>
	<lastBuildDate>Wed, 17 Mar 2010 00:11:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fix Moveable Type Export with Metatag TAGS instead of KEYWORDS</title>
		<link>http://blog.webzappr.com/2008/10/fix-moveable-type-export-with-metatag-tags-instead-of-keywords/</link>
		<comments>http://blog.webzappr.com/2008/10/fix-moveable-type-export-with-metatag-tags-instead-of-keywords/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 21:44:16 +0000</pubDate>
		<dc:creator>Thorsten</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[metatag]]></category>
		<category><![CDATA[movabletype]]></category>
		<category><![CDATA[mt]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://snipplr.wordpress.com/2008/10/26/fix-moveable-type-export-with-metatag-tags-instead-of-keywords/</guid>
		<description><![CDATA[Sometimes a Moveable Type export puts the tags in a Metatag field called TAGS. Sadly this kind of export file does not preserve the keywords/tags when it is imported in Wordpress. Here is a little fix to get these TAGS converted to KEYWORDS.
cat original.txt &#124; sed '/^TAGS/s/ /,/ig' &#124; sed '/^TAGS/s/&#34;//ig' &#62; converted1.txt ;let lines=`cat [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes a Moveable Type export puts the tags in a Metatag field called TAGS. Sadly this kind of export file does not preserve the keywords/tags when it is imported in Wordpress. Here is a little fix to get these TAGS converted to KEYWORDS.</p>
<pre class="brush: php;">cat original.txt | sed '/^TAGS/s/ /,/ig' | sed '/^TAGS/s/&quot;//ig' &gt; converted1.txt ;let lines=`cat converted1.txt|wc -l`; let lines=`expr &quot;$lines&quot; : '\([0-9]*\)'`; for i in `seq 1 $lines`; do line=`head -n $i converted1.txt | tail -n 1`; istag=`echo $line|grep -E &quot;^TAGS:&quot;|wc -c`; if [ &quot;$istag&quot; -gt 0 ]; then tags=`echo $line|sed 's/TAGS: \\(.*\\)/\\1/g'`; echo $tags; fi; iskeyword=`echo $line|grep -E &quot;^KEYWORDS:&quot;|wc -c`; if [ &quot;$iskeyword&quot; -gt 0 ]; then let tagline=($i+1); fi; if [ &quot;$i&quot; == &quot;$tagline&quot; ]; then echo $tags; tags=&quot;&quot;; tagline=0; else echo $line; fi; done &gt; converted.txt</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.webzappr.com/2008/10/fix-moveable-type-export-with-metatag-tags-instead-of-keywords/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
