<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: shell脚本解题4</title>
	<atom:link href="http://cocobear.info/blog/2008/07/18/05-issues-shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://cocobear.info/blog/2008/07/18/05-issues-shell/</link>
	<description>K.I.S.S</description>
	<lastBuildDate>Mon, 30 Jan 2012 11:09:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: luguo</title>
		<link>http://cocobear.info/blog/2008/07/18/05-issues-shell/comment-page-1/#comment-3902</link>
		<dc:creator>luguo</dc:creator>
		<pubDate>Fri, 18 Jul 2008 13:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://cocobear.info/blog/?p=294#comment-3902</guid>
		<description>第2个：
echo &#039;2008-01-2007-12&#039; &#124; perl -ne &#039;($a, $b, $c, $d)=split/\-/; print abs(($a-$c)*12+$b-$d), &quot;\n&quot;;&#039;</description>
		<content:encoded><![CDATA[<p>第2个：<br />
echo &#8217;2008-01-2007-12&#8242; | perl -ne &#8216;($a, $b, $c, $d)=split/\-/; print abs(($a-$c)*12+$b-$d), &#8220;\n&#8221;;&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luguo</title>
		<link>http://cocobear.info/blog/2008/07/18/05-issues-shell/comment-page-1/#comment-3901</link>
		<dc:creator>luguo</dc:creator>
		<pubDate>Fri, 18 Jul 2008 11:28:13 +0000</pubDate>
		<guid isPermaLink="false">http://cocobear.info/blog/?p=294#comment-3901</guid>
		<description>或者更简单的： 
perl -ne &#039;$i= length($_) &gt; 7? 5: length($_)-2; substr($_, 1, $i)=&quot;*&quot;x$i; print;&#039; test.txt</description>
		<content:encoded><![CDATA[<p>或者更简单的：<br />
perl -ne &#8216;$i= length($_) &gt; 7? 5: length($_)-2; substr($_, 1, $i)=&#8221;*&#8221;x$i; print;&#8217; test.txt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luguo</title>
		<link>http://cocobear.info/blog/2008/07/18/05-issues-shell/comment-page-1/#comment-3900</link>
		<dc:creator>luguo</dc:creator>
		<pubDate>Fri, 18 Jul 2008 11:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://cocobear.info/blog/?p=294#comment-3900</guid>
		<description>Oops! 应该是：perl -ne &#039;chomp; $i= length($_) &gt; 6? 5: length($_)-1; substr($_, 1, $i)=&quot;*&quot;x$i; print &quot;$_\n&quot;;&#039; test.txt</description>
		<content:encoded><![CDATA[<p>Oops! 应该是：perl -ne &#8216;chomp; $i= length($_) &gt; 6? 5: length($_)-1; substr($_, 1, $i)=&#8221;*&#8221;x$i; print &#8220;$_\n&#8221;;&#8217; test.txt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luguo</title>
		<link>http://cocobear.info/blog/2008/07/18/05-issues-shell/comment-page-1/#comment-3899</link>
		<dc:creator>luguo</dc:creator>
		<pubDate>Fri, 18 Jul 2008 11:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://cocobear.info/blog/?p=294#comment-3899</guid>
		<description>第1个的perl解法：
perl -ne &#039;chomp; $i= length($_) &gt; 6? 5: length($_)-2; substr($_, 1, $i)=&quot;*&quot;x$i; print &quot;$_\n&quot;;&#039; test.txt</description>
		<content:encoded><![CDATA[<p>第1个的perl解法：<br />
perl -ne &#8216;chomp; $i= length($_) &gt; 6? 5: length($_)-2; substr($_, 1, $i)=&#8221;*&#8221;x$i; print &#8220;$_\n&#8221;;&#8217; test.txt</p>
]]></content:encoded>
	</item>
</channel>
</rss>

