<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ls -laR; du; | sort per directory to show decending order of file sizes from current directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597828#M855103</link>
    <description>How about modifying the find in my previous posting to:&lt;BR /&gt;&lt;BR /&gt;find . -type f -exec du -sk {} \; |sort -n&lt;BR /&gt;&lt;BR /&gt;Its not sorted in directory order, but it does list all the files and their sizes.&lt;BR /&gt;&lt;BR /&gt;Robin's scripting abilities are amazing...I'm suprised he's not royalty yet.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
    <pubDate>Fri, 19 Oct 2001 08:38:36 GMT</pubDate>
    <dc:creator>Santosh Nair_1</dc:creator>
    <dc:date>2001-10-19T08:38:36Z</dc:date>
    <item>
      <title>ls -laR; du; | sort per directory to show decending order of file sizes from current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597822#M855097</link>
      <description>Where do I start to do something like this;&lt;BR /&gt;&lt;BR /&gt;Rewards for all suggestions!&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Oct 2001 07:34:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597822#M855097</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-19T07:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: ls -laR; du; | sort per directory to show decending order of file sizes from current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597823#M855098</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;for du try:&lt;BR /&gt;&lt;BR /&gt;du -a | sort -n&lt;BR /&gt;&lt;BR /&gt;for ls try:&lt;BR /&gt;&lt;BR /&gt;ls -laR | sort -k5n&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 19 Oct 2001 07:42:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597823#M855098</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2001-10-19T07:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: ls -laR; du; | sort per directory to show decending order of file sizes from current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597824#M855099</link>
      <description>Not really sure if this is what you're looking for but how about:&lt;BR /&gt;&lt;BR /&gt;find . -type -d -exec du -sk {} \; |sort -n&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Fri, 19 Oct 2001 07:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597824#M855099</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-19T07:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: ls -laR; du; | sort per directory to show decending order of file sizes from current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597825#M855100</link>
      <description>&lt;BR /&gt;Hows this;&lt;BR /&gt;&lt;BR /&gt;cd &lt;DIR&gt;&lt;BR /&gt;du -k . | sort -nr | more&lt;/DIR&gt;</description>
      <pubDate>Fri, 19 Oct 2001 08:00:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597825#M855100</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-10-19T08:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: ls -laR; du; | sort per directory to show decending order of file sizes from current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597826#M855101</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;This will format it on a per directory basis:&lt;BR /&gt;&lt;BR /&gt;=============================================&lt;BR /&gt;&lt;BR /&gt;find . -type f | xargs ll | awk '{print $5,$NF}' | while read line ; do&lt;BR /&gt;echo $(dirname "$line") $(basename "$line")&lt;BR /&gt;done | sort -k 2,2 -k 1n,1 |&lt;BR /&gt;awk '{if ($2 != dir) {print"====================";print "Directory - "$2;dir=$2}}{$2="";print}'&lt;BR /&gt;&lt;BR /&gt;=============================================&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Fri, 19 Oct 2001 08:17:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597826#M855101</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-19T08:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: ls -laR; du; | sort per directory to show decending order of file sizes from current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597827#M855102</link>
      <description>Sheesh, you're good at the awk stuff Robin!&lt;BR /&gt;&lt;BR /&gt;Nice output...&lt;BR /&gt;seems to take a bit of time though, I'd really have prefered an identical or equivalent output a little easier..&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Bill</description>
      <pubDate>Fri, 19 Oct 2001 08:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597827#M855102</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-10-19T08:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: ls -laR; du; | sort per directory to show decending order of file sizes from current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597828#M855103</link>
      <description>How about modifying the find in my previous posting to:&lt;BR /&gt;&lt;BR /&gt;find . -type f -exec du -sk {} \; |sort -n&lt;BR /&gt;&lt;BR /&gt;Its not sorted in directory order, but it does list all the files and their sizes.&lt;BR /&gt;&lt;BR /&gt;Robin's scripting abilities are amazing...I'm suprised he's not royalty yet.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Fri, 19 Oct 2001 08:38:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597828#M855103</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-19T08:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: ls -laR; du; | sort per directory to show decending order of file sizes from current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597829#M855104</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;hope i understood you right. You want a per directory list of files sorted by size, correct?&lt;BR /&gt;&lt;BR /&gt;I would do something like:&lt;BR /&gt;&lt;BR /&gt;for dir in `ls -d *` do&lt;BR /&gt;du -sk $dir/* | sort -rn&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This will sort the files in each directory descending on filesize.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Fri, 19 Oct 2001 08:39:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597829#M855104</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2001-10-19T08:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: ls -laR; du; | sort per directory to show decending order of file sizes from current directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597830#M855105</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Actually, looking at Stefan's solution, mine's a bit OTT, but I've been waiting so long for these pages today, I got a bit carried away.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Fri, 19 Oct 2001 09:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ls-lar-du-sort-per-directory-to-show-decending-order-of-file/m-p/2597830#M855105</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-19T09:09:47Z</dc:date>
    </item>
  </channel>
</rss>

