<?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>#raynix# &#187; CLI</title>
	<atom:link href="http://raynix.info/archives/tag/cli/feed" rel="self" type="application/rss+xml" />
	<link>http://raynix.info</link>
	<description>You aren't the man you used to be 2 years ago.</description>
	<lastBuildDate>Thu, 09 Sep 2010 04:40:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>你去年夏天都做了什么？</title>
		<link>http://raynix.info/archives/746</link>
		<comments>http://raynix.info/archives/746#comments</comments>
		<pubDate>Tue, 03 Nov 2009 08:31:14 +0000</pubDate>
		<dc:creator>raynix</dc:creator>
				<category><![CDATA[Free software]]></category>
		<category><![CDATA[Opensource]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://raynix.cn/?p=746</guid>
		<description><![CDATA[标题是吓人的，哈哈。 转发一下下面这个时髦的让我懒得理解的命令，看看你使用最频繁的10个命令是什么？ history &#124; awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' &#124; grep -v "./" &#124; column -c3 -s " " -t &#124; sort -nr &#124; nl &#124; head -n10 我的统计结果： 1    102  20.4%  ls 2    91   18.2%  ssh 3    62   12.4%  ping 4    62   12.4%  cd 5   [...]]]></description>
			<content:encoded><![CDATA[<p>标题是吓人的，哈哈。</p>
<p>转发一下下面这个时髦的让我懒得理解的命令，看看你使用最频繁的10个命令是什么？</p>
<blockquote><p>history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10</p></blockquote>
<p>我的统计结果：</p>
<blockquote><p>1    102  20.4%  ls<br />
2    91   18.2%  ssh<br />
3    62   12.4%  ping<br />
4    62   12.4%  cd<br />
5    28   5.6%   iwlist<br />
6    21   4.2%   sudo<br />
7    18   3.6%   exit<br />
8    11   2.2%   python<br />
9    9    1.8%   cat<br />
10    7    1.4%   gedit</p></blockquote>
<p>你的TOP10是什么样子的？</p>
<hr />
<p><small>© raynix for <a href="http://raynix.info">#raynix#</a>, 2009. |
<a href="http://raynix.info/archives/746">Permalink</a> |
<a href="http://raynix.info/archives/746#comments">唉, 一个评论都没</a> |
Add to
<a href="http://del.icio.us/post?url=http://raynix.info/archives/746&title=你去年夏天都做了什么？">del.icio.us</a>
<br/>
Post tags: <a href="http://raynix.info/archives/tag/cli" rel="tag">CLI</a>, <a href="http://raynix.info/archives/tag/linux" rel="tag">linux</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://raynix.info/archives/746/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux CLI一行搞定批量文件改名</title>
		<link>http://raynix.info/archives/597</link>
		<comments>http://raynix.info/archives/597#comments</comments>
		<pubDate>Mon, 20 Jul 2009 05:59:44 +0000</pubDate>
		<dc:creator>raynix</dc:creator>
				<category><![CDATA[Free software]]></category>
		<category><![CDATA[Opensource]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://raynix.cn/?p=597</guid>
		<description><![CDATA[参考链接：How to batch rename files 如果一个文件夹下面有成百上千的文件要统一改名该怎么办？很简单： for i in *; do j=`echo $i &#124;cut -d . -f 1`; j=$j".ext";  mv $i $j; done 上例中会把'abc.def.xyz' 改名为 'abc.ext'，应用到当前文件夹所有文件。 这回发现cut这个命令很好用，其中'-d .'指明了使用'.'作为分割符号，而'-f 1'只保留被'.'分割后的第一行。如果一个文件名是'abc.defg.hij'，那么cut -d . -f 1将返回'abc'。 © raynix for #raynix#, 2009. &#124; Permalink &#124; 3 条评论 &#124; Add to del.icio.us Post tags: CLI, linux Feed enhanced by Better [...]]]></description>
			<content:encoded><![CDATA[<p>参考链接：<a href="http://www.thingy-ma-jig.co.uk/blog/19-04-2008/how-batch-rename-files" target="_blank">How to batch rename files</a></p>
<p>如果一个文件夹下面有成百上千的文件要统一改名该怎么办？很简单：</p>
<blockquote><p>for i in *; do j=`echo $i |cut -d . -f 1`; j=$j".ext";  mv $i $j; done</p></blockquote>
<p>上例中会把'abc.def.xyz' 改名为 'abc.ext'，应用到当前文件夹所有文件。</p>
<p>这回发现cut这个命令很好用，其中'-d .'指明了使用'.'作为分割符号，而'-f 1'只保留被'.'分割后的第一行。如果一个文件名是'abc.defg.hij'，那么cut -d . -f 1将返回'abc'。</p>
<hr />
<p><small>© raynix for <a href="http://raynix.info">#raynix#</a>, 2009. |
<a href="http://raynix.info/archives/597">Permalink</a> |
<a href="http://raynix.info/archives/597#comments">3 条评论</a> |
Add to
<a href="http://del.icio.us/post?url=http://raynix.info/archives/597&title=Linux CLI一行搞定批量文件改名">del.icio.us</a>
<br/>
Post tags: <a href="http://raynix.info/archives/tag/cli" rel="tag">CLI</a>, <a href="http://raynix.info/archives/tag/linux" rel="tag">linux</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://raynix.info/archives/597/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CLI（命令行界面）的网络监控</title>
		<link>http://raynix.info/archives/483</link>
		<comments>http://raynix.info/archives/483#comments</comments>
		<pubDate>Fri, 03 Apr 2009 10:12:07 +0000</pubDate>
		<dc:creator>raynix</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Opensource]]></category>
		<category><![CDATA[bwm-ng]]></category>
		<category><![CDATA[CLI]]></category>

		<guid isPermaLink="false">http://raynix.cn/?p=483</guid>
		<description><![CDATA[图形界面的网络流量控制并不稀罕了，我总算找到一个CLI的，给我那没有GUI的Ubuntu Server装上了。很简单，但是并不简陋哦！即时、平均、最大数值都可以看到。 我是从这里发现bwm-ng的。 © raynix for #raynix#, 2009. &#124; Permalink &#124; 唉, 一个评论都没 &#124; Add to del.icio.us Post tags: bwm-ng, CLI Feed enhanced by Better Feed from Ozh]]></description>
			<content:encoded><![CDATA[<p><a href="http://picasaweb.google.com/lh/photo/6EK_ueq_WBkiefXpjwfr_w?feat=embedwebsite"><img src="http://lh4.ggpht.com/_ZO8fi9o7nlg/SdWGOuMYWwI/AAAAAAAAA4k/TSkzuEtfIBI/s144/bwm-ng.jpg" alt="" /></a></p>
<p>图形界面的网络流量控制并不稀罕了，我总算找到一个CLI的，给我那没有GUI的Ubuntu Server装上了。很简单，但是并不简陋哦！即时、平均、最大数值都可以看到。</p>
<p>我是从<a href="http://www.linux.com/feature/52443" target="_blank">这里</a>发现bwm-ng的。</p>
<hr />
<p><small>© raynix for <a href="http://raynix.info">#raynix#</a>, 2009. |
<a href="http://raynix.info/archives/483">Permalink</a> |
<a href="http://raynix.info/archives/483#comments">唉, 一个评论都没</a> |
Add to
<a href="http://del.icio.us/post?url=http://raynix.info/archives/483&title=CLI（命令行界面）的网络监控">del.icio.us</a>
<br/>
Post tags: <a href="http://raynix.info/archives/tag/bwm-ng" rel="tag">bwm-ng</a>, <a href="http://raynix.info/archives/tag/cli" rel="tag">CLI</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://raynix.info/archives/483/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
