<?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: Most used commands</title>
	<atom:link href="http://www.j4v4m4n.in/2006/09/24/most-used-commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.j4v4m4n.in/2006/09/24/most-used-commands/</link>
	<description>It's My life</description>
	<lastBuildDate>Sun, 06 Nov 2011 14:21:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Praveen A</title>
		<link>http://www.j4v4m4n.in/2006/09/24/most-used-commands/comment-page-1/#comment-1426</link>
		<dc:creator>Praveen A</dc:creator>
		<pubDate>Sat, 07 Oct 2006 07:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.j4v4m4n.in/2006/09/24/most-used-commands/#comment-1426</guid>
		<description>Das,
Thanks a lot for the tip.</description>
		<content:encoded><![CDATA[<p>Das,<br />
Thanks a lot for the tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Das</title>
		<link>http://www.j4v4m4n.in/2006/09/24/most-used-commands/comment-page-1/#comment-1425</link>
		<dc:creator>Das</dc:creator>
		<pubDate>Sat, 07 Oct 2006 05:44:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.j4v4m4n.in/2006/09/24/most-used-commands/#comment-1425</guid>
		<description>The above script doesn&#039;t give the &quot;most used&quot; commands - as you can see 9 appears above 91. 

A slight modification does the trick: 
$ history &#124; awk &#039;{print $2}&#039; &#124; awk &#039;BEGIN {FS=&quot;&#124;&quot;} {print $1}&#039; &#124; sort &#124; uniq -c &#124; sort -rg &#124; head -10

i.e. instead of sort -r, use sort -rg which does a numeric sort. 
--Das</description>
		<content:encoded><![CDATA[<p>The above script doesn&#8217;t give the &#8220;most used&#8221; commands &#8211; as you can see 9 appears above 91. </p>
<p>A slight modification does the trick:<br />
$ history | awk &#8216;{print $2}&#8217; | awk &#8216;BEGIN {FS=&#8221;|&#8221;} {print $1}&#8217; | sort | uniq -c | sort -rg | head -10</p>
<p>i.e. instead of sort -r, use sort -rg which does a numeric sort.<br />
&#8211;Das</p>
]]></content:encoded>
	</item>
</channel>
</rss>

