<?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: Sort by numeric value in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-by-numeric-value/m-p/2494217#M19934</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The -n option in sort allows you to sort by numeric value.&lt;BR /&gt;&lt;BR /&gt;If you wish to sort by increasing value:&lt;BR /&gt;&lt;BR /&gt;# du | sort -n&lt;BR /&gt;&lt;BR /&gt;If you wish to sort by decreasing value:&lt;BR /&gt;&lt;BR /&gt;# du | sort -r -n&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
    <pubDate>Thu, 15 Feb 2001 15:17:40 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2001-02-15T15:17:40Z</dc:date>
    <item>
      <title>Sort by numeric value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-by-numeric-value/m-p/2494214#M19931</link>
      <description>When I run du and pipe it to sort -k 1,1 the results are ordered by collating sequence.  Is there a way of ordering it by numeric value, e.g. 123 would appear after  24?  Thanks.</description>
      <pubDate>Thu, 15 Feb 2001 14:59:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-by-numeric-value/m-p/2494214#M19931</guid>
      <dc:creator>Ed Hon</dc:creator>
      <dc:date>2001-02-15T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by numeric value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-by-numeric-value/m-p/2494215#M19932</link>
      <description>du | sort -n -k 1,1</description>
      <pubDate>Thu, 15 Feb 2001 15:10:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-by-numeric-value/m-p/2494215#M19932</guid>
      <dc:creator>Mike Williams_3</dc:creator>
      <dc:date>2001-02-15T15:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by numeric value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-by-numeric-value/m-p/2494216#M19933</link>
      <description>Ed:&lt;BR /&gt;&lt;BR /&gt;Add the '-n' flag to your sort.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 15 Feb 2001 15:11:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-by-numeric-value/m-p/2494216#M19933</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-02-15T15:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by numeric value</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-by-numeric-value/m-p/2494217#M19934</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The -n option in sort allows you to sort by numeric value.&lt;BR /&gt;&lt;BR /&gt;If you wish to sort by increasing value:&lt;BR /&gt;&lt;BR /&gt;# du | sort -n&lt;BR /&gt;&lt;BR /&gt;If you wish to sort by decreasing value:&lt;BR /&gt;&lt;BR /&gt;# du | sort -r -n&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Thu, 15 Feb 2001 15:17:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-by-numeric-value/m-p/2494217#M19934</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-02-15T15:17:40Z</dc:date>
    </item>
  </channel>
</rss>

