<?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>评论：Bash matrix 脚本</title>
	<atom:link href="http://joolix.com/2009/12/bash-matrix-script/feed/" rel="self" type="application/rss+xml" />
	<link>http://joolix.com/2009/12/bash-matrix-script/</link>
	<description>Joolix, linux everywhere!</description>
	<lastBuildDate>Tue, 24 Aug 2010 15:02:35 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：xiooli</title>
		<link>http://joolix.com/2009/12/bash-matrix-script/comment-page-1/#comment-698</link>
		<dc:creator>xiooli</dc:creator>
		<pubDate>Mon, 21 Dec 2009 04:12:46 +0000</pubDate>
		<guid isPermaLink="false">http://joolix.com/?p=313#comment-698</guid>
		<description>&lt;a href=&quot;#comment-693&quot; rel=&quot;nofollow&quot;&gt;@半瓶墨水&lt;/a&gt; 
你这个效果有点诡异哦，呵呵</description>
		<content:encoded><![CDATA[<p><a href="#comment-693" rel="nofollow">@半瓶墨水</a><br />
你这个效果有点诡异哦，呵呵</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：xiooli</title>
		<link>http://joolix.com/2009/12/bash-matrix-script/comment-page-1/#comment-697</link>
		<dc:creator>xiooli</dc:creator>
		<pubDate>Mon, 21 Dec 2009 04:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://joolix.com/?p=313#comment-697</guid>
		<description>&lt;a href=&quot;#comment-694&quot; rel=&quot;nofollow&quot;&gt;@halida&lt;/a&gt; 
额，你确定是用的bash？</description>
		<content:encoded><![CDATA[<p><a href="#comment-694" rel="nofollow">@halida</a><br />
额，你确定是用的bash？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：xiooli</title>
		<link>http://joolix.com/2009/12/bash-matrix-script/comment-page-1/#comment-696</link>
		<dc:creator>xiooli</dc:creator>
		<pubDate>Mon, 21 Dec 2009 04:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://joolix.com/?p=313#comment-696</guid>
		<description>额，引擎是你的（所以叫 powered by bones7456 嘛），我做了下效果增强哈。</description>
		<content:encoded><![CDATA[<p>额，引擎是你的（所以叫 powered by bones7456 嘛），我做了下效果增强哈。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：bones7456</title>
		<link>http://joolix.com/2009/12/bash-matrix-script/comment-page-1/#comment-695</link>
		<dc:creator>bones7456</dc:creator>
		<pubDate>Mon, 21 Dec 2009 01:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://joolix.com/?p=313#comment-695</guid>
		<description>Martix 不是只有0和1往下掉吗？附上之前我的版本：
&lt;pre lang=&quot;bash&quot;&gt;p(){ printf &quot;33[%d;%dH33[32m%c33[m&quot; $1 $2 &quot;$3&quot;; }; clear;N=15;for i in `seq $N`;do x[$i]=$((RANDOM%LINES+1));y[$i]=$((RANDOM%COLUMNS+1));done;while :;do for i in `seq $N`;do p ${x[$i]} ${y[$i]} $((RANDOM%2)); ((x[$i]++));if [ ${x[$i]} -ge $LINES ] ;then for j in `seq $LINES`;do p $j ${y[$i]} &quot; &quot;;done;x[$i]=$((RANDOM%LINES+1));y[$i]=$((RANDOM%COLUMNS+1));fi;done;sleep .003;done
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Martix 不是只有0和1往下掉吗？附上之前我的版本：</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">p<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#123;</span> <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;33[%d;%dH33[32m%c33[m&quot;</span> $<span style="color: #000000;">1</span> $<span style="color: #000000;">2</span> <span style="color: #ff0000;">&quot;$3&quot;</span>; <span style="color: #7a0874; font-weight: bold;">&#125;</span>; <span style="color: #c20cb9; font-weight: bold;">clear</span>;<span style="color: #007800;">N</span>=<span style="color: #000000;">15</span>;<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #007800;">$N</span><span style="color: #000000; font-weight: bold;">`</span>;<span style="color: #000000; font-weight: bold;">do</span> x<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">$i</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>RANDOM<span style="color: #000000; font-weight: bold;">%</span>LINES+<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;y<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">$i</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>RANDOM<span style="color: #000000; font-weight: bold;">%</span>COLUMNS+<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;<span style="color: #000000; font-weight: bold;">done</span>;<span style="color: #000000; font-weight: bold;">while</span> :;<span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #007800;">$N</span><span style="color: #000000; font-weight: bold;">`</span>;<span style="color: #000000; font-weight: bold;">do</span> p <span style="color: #800000;">${x[$i]}</span> <span style="color: #800000;">${y[$i]}</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>RANDOM<span style="color: #000000; font-weight: bold;">%</span>2<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>x<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">$i</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>++<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #800000;">${x[$i]}</span> <span style="color: #660033;">-ge</span> <span style="color: #007800;">$LINES</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> ;<span style="color: #000000; font-weight: bold;">then</span> <span style="color: #000000; font-weight: bold;">for</span> j <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #007800;">$LINES</span><span style="color: #000000; font-weight: bold;">`</span>;<span style="color: #000000; font-weight: bold;">do</span> p <span style="color: #007800;">$j</span> <span style="color: #800000;">${y[$i]}</span> <span style="color: #ff0000;">&quot; &quot;</span>;<span style="color: #000000; font-weight: bold;">done</span>;x<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">$i</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>RANDOM<span style="color: #000000; font-weight: bold;">%</span>LINES+<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;y<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">$i</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>RANDOM<span style="color: #000000; font-weight: bold;">%</span>COLUMNS+<span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;<span style="color: #000000; font-weight: bold;">fi</span>;<span style="color: #000000; font-weight: bold;">done</span>;<span style="color: #c20cb9; font-weight: bold;">sleep</span> .003;<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>来自：halida</title>
		<link>http://joolix.com/2009/12/bash-matrix-script/comment-page-1/#comment-694</link>
		<dc:creator>halida</dc:creator>
		<pubDate>Sun, 20 Dec 2009 12:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://joolix.com/?p=313#comment-694</guid>
		<description>bash: 在未预料的“{printf”附近出现语法错误</description>
		<content:encoded><![CDATA[<p>bash: 在未预料的“{printf”附近出现语法错误</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：半瓶墨水</title>
		<link>http://joolix.com/2009/12/bash-matrix-script/comment-page-1/#comment-693</link>
		<dc:creator>半瓶墨水</dc:creator>
		<pubDate>Sat, 19 Dec 2009 17:01:21 +0000</pubDate>
		<guid isPermaLink="false">http://joolix.com/?p=313#comment-693</guid>
		<description>巧了，前几天刚刚写了一个，4行Python语句，呵呵
http://www.2maomao.com/blog/several-python-scripts-wrote-recently/</description>
		<content:encoded><![CDATA[<p>巧了，前几天刚刚写了一个，4行Python语句，呵呵<br />
<a href="http://www.2maomao.com/blog/several-python-scripts-wrote-recently/" rel="nofollow">http://www.2maomao.com/blog/several-python-scripts-wrote-recently/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：Tweets that mention joolix.com » Bash matrix 脚本 -- Topsy.com</title>
		<link>http://joolix.com/2009/12/bash-matrix-script/comment-page-1/#comment-692</link>
		<dc:creator>Tweets that mention joolix.com » Bash matrix 脚本 -- Topsy.com</dc:creator>
		<pubDate>Fri, 18 Dec 2009 14:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://joolix.com/?p=313#comment-692</guid>
		<description>[...] This post was mentioned on Twitter by 想入非非, xiooli. xiooli said: bash matrix 单行脚本，powered by bones7456：http://joolix.com/2009/12/bash-matrix-script/ [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by 想入非非, xiooli. xiooli said: bash matrix 单行脚本，powered by bones7456：http://joolix.com/2009/12/bash-matrix-script/ [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
