<?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 Sorting strings in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sorting-strings/m-p/4287036#M336232</link>
    <description>Hiya guys,&lt;BR /&gt;&lt;BR /&gt;Need help with sorting strings.  My data looks like this:&lt;BR /&gt;dat11&lt;BR /&gt;dat1&lt;BR /&gt;dat33&lt;BR /&gt;dat3&lt;BR /&gt;dat10&lt;BR /&gt;dat30&lt;BR /&gt;dat20&lt;BR /&gt;dat31&lt;BR /&gt;dat2&lt;BR /&gt;&lt;BR /&gt;the desired output is:&lt;BR /&gt;&lt;BR /&gt;dat1&lt;BR /&gt;dat2&lt;BR /&gt;dat3&lt;BR /&gt;dat10&lt;BR /&gt;dat11&lt;BR /&gt;dat20&lt;BR /&gt;dat30&lt;BR /&gt;dat31&lt;BR /&gt;dat33&lt;BR /&gt;&lt;BR /&gt;but oviously this would happen:&lt;BR /&gt;dat1&lt;BR /&gt;dat10&lt;BR /&gt;dat11&lt;BR /&gt;dat2&lt;BR /&gt;dat20&lt;BR /&gt;dat3&lt;BR /&gt;dat30&lt;BR /&gt;dat31&lt;BR /&gt;dat33&lt;BR /&gt;&lt;BR /&gt;so, the question is how do i get the desired output done?&lt;BR /&gt;&lt;BR /&gt;TIA!</description>
    <pubDate>Tue, 14 Oct 2008 23:50:39 GMT</pubDate>
    <dc:creator>cam9269</dc:creator>
    <dc:date>2008-10-14T23:50:39Z</dc:date>
    <item>
      <title>Sorting strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sorting-strings/m-p/4287036#M336232</link>
      <description>Hiya guys,&lt;BR /&gt;&lt;BR /&gt;Need help with sorting strings.  My data looks like this:&lt;BR /&gt;dat11&lt;BR /&gt;dat1&lt;BR /&gt;dat33&lt;BR /&gt;dat3&lt;BR /&gt;dat10&lt;BR /&gt;dat30&lt;BR /&gt;dat20&lt;BR /&gt;dat31&lt;BR /&gt;dat2&lt;BR /&gt;&lt;BR /&gt;the desired output is:&lt;BR /&gt;&lt;BR /&gt;dat1&lt;BR /&gt;dat2&lt;BR /&gt;dat3&lt;BR /&gt;dat10&lt;BR /&gt;dat11&lt;BR /&gt;dat20&lt;BR /&gt;dat30&lt;BR /&gt;dat31&lt;BR /&gt;dat33&lt;BR /&gt;&lt;BR /&gt;but oviously this would happen:&lt;BR /&gt;dat1&lt;BR /&gt;dat10&lt;BR /&gt;dat11&lt;BR /&gt;dat2&lt;BR /&gt;dat20&lt;BR /&gt;dat3&lt;BR /&gt;dat30&lt;BR /&gt;dat31&lt;BR /&gt;dat33&lt;BR /&gt;&lt;BR /&gt;so, the question is how do i get the desired output done?&lt;BR /&gt;&lt;BR /&gt;TIA!</description>
      <pubDate>Tue, 14 Oct 2008 23:50:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sorting-strings/m-p/4287036#M336232</guid>
      <dc:creator>cam9269</dc:creator>
      <dc:date>2008-10-14T23:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sorting-strings/m-p/4287037#M336233</link>
      <description>If your data is always 3 bytes then the number you can use:&lt;BR /&gt;sort -k1.1,1.3 -k1.4,1n&lt;BR /&gt;&lt;BR /&gt;If it varies in size, you would have to split the data into two fields then sort and then merge.&lt;BR /&gt;But the moral of the story is that you should use leading zeroes with a fixed width for numbers.</description>
      <pubDate>Wed, 15 Oct 2008 03:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sorting-strings/m-p/4287037#M336233</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-15T03:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting strings</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sorting-strings/m-p/4287038#M336234</link>
      <description>Wow! great solution,works perfectly fine. This would serve well, because our data will stay this way unless we move out to another system.&lt;BR /&gt;&lt;BR /&gt;And yes, I do agree with the structure, it's just taht i cannot modify what has been implemented and is currently running.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 15 Oct 2008 03:53:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sorting-strings/m-p/4287038#M336234</guid>
      <dc:creator>cam9269</dc:creator>
      <dc:date>2008-10-15T03:53:52Z</dc:date>
    </item>
  </channel>
</rss>

