<?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>以太之内 生存之上 &#187; bash</title>
	<atom:link href="http://ixhan.com/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://ixhan.com</link>
	<description>Live in your world, get owned in mine</description>
	<lastBuildDate>Mon, 26 Jul 2010 17:09:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>OSX Terminal(终端) 使用快捷键</title>
		<link>http://ixhan.com/2009/11/osx-terminal-keyshort/</link>
		<comments>http://ixhan.com/2009/11/osx-terminal-keyshort/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 13:10:37 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[快捷键]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[终端]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=144</guid>
		<description><![CDATA[之前唯一会用的终端快捷键只有 up 和 down 。碰到长串命令中打错几个字母就很麻烦了，今天学到几个快捷键分享下。 首先勾选设置-》键盘-》使用 option 键作为 meta 键。 然后就可以使用如下快捷键了： control + a / e    回到命令行头/尾 option + b / f     向前/后跳一个单词 control +u /k    删除光标前/后 所有单词 control + y       撤销上个操作 Enjoy It ! 最后有个好玩的命令，查看最常用的10个命令（最近500个命令） awk &#8216;{print $1}&#8217; ~/.bash_history &#124; sort &#124; uniq -c &#124; sort -gr &#124; head 我的结果 100 ls 68 git [...]]]></description>
			<content:encoded><![CDATA[<p>之前唯一会用的终端快捷键只有 up 和 down 。碰到长串命令中打错几个字母就很麻烦了，今天学到几个快捷键分享下。</p>
<p>首先勾选设置-》键盘-》使用 option 键作为 meta 键。</p>
<p>然后就可以使用如下快捷键了：</p>
<ul>
<li>control + a / e    回到命令行头/尾</li>
<li>option + b / f     向前/后跳一个单词</li>
<li>control +u /k    删除光标前/后 所有单词</li>
<li>control + y       撤销上个操作</li>
</ul>
<p>Enjoy It !</p>
<p>最后有个好玩的命令，查看最常用的10个命令（最近500个命令）</p>
<p>awk &#8216;{print $1}&#8217; ~/.bash_history | sort | uniq -c | sort -gr | head<span id="more-144"></span></p>
<p>我的结果</p>
<blockquote><p>100 ls<br />
68 git<br />
63 cd<br />
54 svn<br />
28 fq<br />
20 find<br />
18 open<br />
18 curl<br />
16 ssh<br />
10 rm</p></blockquote>
<p>终于不再全是 ls + cd 了。</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2010/02/fake-version/" title="Fake Version">Fake Version</a></li><li><a href="http://ixhan.com/2009/12/2009-2010/" title="2009-2010 ">2009-2010 </a></li><li><a href="http://ixhan.com/2009/10/redmine-images-manager-system/" title="用 Redmine 管理iPhone项目中过多的图片文件">用 Redmine 管理iPhone项目中过多的图片文件</a></li><li><a href="http://ixhan.com/2009/10/iphone-stencil/" title="iPhone 组件模板（设计用）分享">iPhone 组件模板（设计用）分享</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2009/11/osx-terminal-keyshort/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>命令行的伟大</title>
		<link>http://ixhan.com/2009/10/incredible-of-bash-code/</link>
		<comments>http://ixhan.com/2009/10/incredible-of-bash-code/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 14:47:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=30</guid>
		<description><![CDATA[曾经用Ruby 写了个脚本用来统计项目中文件行数，没事打发下时间顺便满足下小小的虚荣感。 发于cocoaChina论坛中（http://cocoachina.com/bbs/read.php?tid-8266.html）。 结果惨遭鄙视。 原来用 bash 一句话就可以搞定 ！（用Ruby还写了那么多代码～悲剧了～） find . -name '*.m' -exec cat {} \; &#124; wc -l find . -name '*.h' -exec cat {} \; &#124; wc -l find . -name &#34;*.m&#34;  &#124;xargs wc -l 掌握一些常用命令还是很能提高工作效率的。学习中。 Related Posts永远的扫雷英雄(开源) 登场OSX Terminal(终端) 使用快捷键2009年10月15日Downloads]]></description>
			<content:encoded><![CDATA[<p>曾经用Ruby 写了个脚本用来统计项目中文件行数，没事打发下时间顺便满足下小小的虚荣感。</p>
<p>发于cocoaChina论坛中（<a href="http://cocoachina.com/bbs/read.php?tid-8266.html">http://cocoachina.com/bbs/read.php?tid-8266.html</a>）。</p>
<p>结果惨遭鄙视。</p>
<p>原来用 bash 一句话就可以搞定 ！（用Ruby还写了那么多代码～悲剧了～）</p>
<pre class="brush: bash;">

find . -name '*.m' -exec cat {} \; | wc -l

find . -name '*.h' -exec cat {} \; | wc -l

find . -name &quot;*.m&quot;  |xargs wc -l
</pre>
<p>掌握一些常用命令还是很能提高工作效率的。学习中。</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2009/12/minesweeperever/" title="永远的扫雷英雄(开源) 登场">永远的扫雷英雄(开源) 登场</a></li><li><a href="http://ixhan.com/2009/11/osx-terminal-keyshort/" title="OSX Terminal(终端) 使用快捷键">OSX Terminal(终端) 使用快捷键</a></li><li><a href="http://ixhan.com/2009/10/15th/" title="2009年10月15日">2009年10月15日</a></li><li><a href="http://ixhan.com/downloads/" title="Downloads">Downloads</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2009/10/incredible-of-bash-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
