<?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: Bash One Liner &#8211; Human Readable Sorted du</title>
	<atom:link href="http://giantdorks.org/jason/2009/05/01/bash-one-liner-human-readable-sorted-du/feed/" rel="self" type="application/rss+xml" />
	<link>http://giantdorks.org/jason/2009/05/01/bash-one-liner-human-readable-sorted-du/</link>
	<description></description>
	<lastBuildDate>Fri, 28 May 2010 14:16:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alain Kelder</title>
		<link>http://giantdorks.org/jason/2009/05/01/bash-one-liner-human-readable-sorted-du/comment-page-1/#comment-32</link>
		<dc:creator>Alain Kelder</dc:creator>
		<pubDate>Tue, 19 Jan 2010 20:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://giantdorks.org/jason/?p=26#comment-32</guid>
		<description>Looks like this option was added in 7.5 (1) in May 2009 (2) -- so it&#039;s quite new. So only distros which package new stuff very aggressively would have it (or distros without package management :) -- are there any?).

Wonder what distro redondos runs..

In Debian, looks like it just missed making it into the testing branch, so you&#039;d have to grab 8.1 from unstable (3). This means it&#039;ll probably show up in Ubuntu within the next couple of releases. 

Latest stable version of corutils from GNU is 8.4 (4). Perhaps there are other useful features that would make it worthwhile to install from source. Although according to &quot;apt-cache showpkg coreutils&quot;, a ton of other packages depend on coreutils so I&#039;d be fearful of introducing an undiscovered bug and breaking a lot of stuff. I think Debian&#039;s cautious approach to slowly promoting packages from experimental branch to unstable &gt; testing &gt; stable has a lot of merit.

Looks like 7.5 is in Gentoo stable (5)..

(1) http://savannah.gnu.org/patch/?2565
(2) http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=159faba1376ffd5a46fe4bbc780d85dd3e502cea
(3) http://packages.debian.org/search?keywords=coreutils
(4) http://directory.fsf.org/project/coreutils/
(5) http://packages.gentoo.org/package/sys-apps/coreutils</description>
		<content:encoded><![CDATA[<p>Looks like this option was added in 7.5 (1) in May 2009 (2) &#8212; so it&#8217;s quite new. So only distros which package new stuff very aggressively would have it (or distros without package management <img src='http://giantdorks.org/jason/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8212; are there any?).</p>
<p>Wonder what distro redondos runs..</p>
<p>In Debian, looks like it just missed making it into the testing branch, so you&#8217;d have to grab 8.1 from unstable (3). This means it&#8217;ll probably show up in Ubuntu within the next couple of releases. </p>
<p>Latest stable version of corutils from GNU is 8.4 (4). Perhaps there are other useful features that would make it worthwhile to install from source. Although according to &#8220;apt-cache showpkg coreutils&#8221;, a ton of other packages depend on coreutils so I&#8217;d be fearful of introducing an undiscovered bug and breaking a lot of stuff. I think Debian&#8217;s cautious approach to slowly promoting packages from experimental branch to unstable &gt; testing &gt; stable has a lot of merit.</p>
<p>Looks like 7.5 is in Gentoo stable (5)..</p>
<p>(1) <a href="http://savannah.gnu.org/patch/?2565" rel="nofollow">http://savannah.gnu.org/patch/?2565</a><br />
(2) <a href="http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=159faba1376ffd5a46fe4bbc780d85dd3e502cea" rel="nofollow">http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commit;h=159faba1376ffd5a46fe4bbc780d85dd3e502cea</a><br />
(3) <a href="http://packages.debian.org/search?keywords=coreutils" rel="nofollow">http://packages.debian.org/search?keywords=coreutils</a><br />
(4) <a href="http://directory.fsf.org/project/coreutils/" rel="nofollow">http://directory.fsf.org/project/coreutils/</a><br />
(5) <a href="http://packages.gentoo.org/package/sys-apps/coreutils" rel="nofollow">http://packages.gentoo.org/package/sys-apps/coreutils</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Sares</title>
		<link>http://giantdorks.org/jason/2009/05/01/bash-one-liner-human-readable-sorted-du/comment-page-1/#comment-31</link>
		<dc:creator>Jason Sares</dc:creator>
		<pubDate>Tue, 19 Jan 2010 18:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://giantdorks.org/jason/?p=26#comment-31</guid>
		<description>Is there a popular distro that carries the new version of sort (-h)?</description>
		<content:encoded><![CDATA[<p>Is there a popular distro that carries the new version of sort (-h)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alain Kelder</title>
		<link>http://giantdorks.org/jason/2009/05/01/bash-one-liner-human-readable-sorted-du/comment-page-1/#comment-26</link>
		<dc:creator>Alain Kelder</dc:creator>
		<pubDate>Fri, 15 Jan 2010 00:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://giantdorks.org/jason/?p=26#comment-26</guid>
		<description>Sounds promising, but sort complains that -h is an invalid option on most Linuxes I use..

Confirmed on:

CentOS 5.4 -- sort (GNU coreutils) 5.97
Debian 5.0.3 -- sort (GNU coreutils) 6.10
Ubuntu 8.10 -- sort (GNU coreutils) 6.10
Ubuntu 9.10 -- sort (GNU coreutils) 7.4</description>
		<content:encoded><![CDATA[<p>Sounds promising, but sort complains that -h is an invalid option on most Linuxes I use..</p>
<p>Confirmed on:</p>
<p>CentOS 5.4 &#8212; sort (GNU coreutils) 5.97<br />
Debian 5.0.3 &#8212; sort (GNU coreutils) 6.10<br />
Ubuntu 8.10 &#8212; sort (GNU coreutils) 6.10<br />
Ubuntu 9.10 &#8212; sort (GNU coreutils) 7.4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: redondos</title>
		<link>http://giantdorks.org/jason/2009/05/01/bash-one-liner-human-readable-sorted-du/comment-page-1/#comment-25</link>
		<dc:creator>redondos</dc:creator>
		<pubDate>Thu, 14 Jan 2010 21:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://giantdorks.org/jason/?p=26#comment-25</guid>
		<description>GNU sort has a -h option that makes this trivial:

du -hs * &#124; sort -h</description>
		<content:encoded><![CDATA[<p>GNU sort has a -h option that makes this trivial:</p>
<p>du -hs * | sort -h</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alain Kelder is a Giant Dork&#8230;</title>
		<link>http://giantdorks.org/jason/2009/05/01/bash-one-liner-human-readable-sorted-du/comment-page-1/#comment-24</link>
		<dc:creator>Alain Kelder is a Giant Dork&#8230;</dc:creator>
		<pubDate>Fri, 08 Jan 2010 08:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://giantdorks.org/jason/?p=26#comment-24</guid>
		<description>[...] liked Jason&#8217;s solution of passing a file list to du via xargs to produce results sorted by size in human readable format, [...]</description>
		<content:encoded><![CDATA[<p>[...] liked Jason&#8217;s solution of passing a file list to du via xargs to produce results sorted by size in human readable format, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alain Kelder</title>
		<link>http://giantdorks.org/jason/2009/05/01/bash-one-liner-human-readable-sorted-du/comment-page-1/#comment-22</link>
		<dc:creator>Alain Kelder</dc:creator>
		<pubDate>Sat, 13 Jun 2009 00:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://giantdorks.org/jason/?p=26#comment-22</guid>
		<description>That&#039;s a good one! It fails for files/dirs with spaces in the name. According to xargs man page, it&#039;ll accept a delimiter such as the new line character. With that it can handle spaces:

du -s * &#124; sort -n &#124; cut -f2 &#124; xargs -d &quot;\n&quot; du -sh

Sweet...</description>
		<content:encoded><![CDATA[<p>That&#8217;s a good one! It fails for files/dirs with spaces in the name. According to xargs man page, it&#8217;ll accept a delimiter such as the new line character. With that it can handle spaces:</p>
<p>du -s * | sort -n | cut -f2 | xargs -d &#8220;\n&#8221; du -sh</p>
<p>Sweet&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
