<?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: Complex sort question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/complex-sort-question/m-p/4647993#M614110</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# sort -k2,2 -kr1,1 file &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 15 Jun 2010 14:51:47 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-06-15T14:51:47Z</dc:date>
    <item>
      <title>Complex sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complex-sort-question/m-p/4647992#M614109</link>
      <description>I want to sort a text file that includes an SSN and a dependent relationship code. This time, the dependent relationship (E for employee, D for Dependent) is in column 2, which needs to be sorted in reverse order after the SSN (columns 3-13). I have not found a way to reverse the sense of the comparision for one key, while keeping a normal comparison for the primary key.&lt;BR /&gt;&lt;BR /&gt;A more complicated case that comes up involves ordering a family, so that the employee (e) is first, the spouse (s), is second, and the children (1,2,3,...) follow. &lt;BR /&gt;&lt;BR /&gt;Thanks for looking</description>
      <pubDate>Tue, 15 Jun 2010 14:39:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complex-sort-question/m-p/4647992#M614109</guid>
      <dc:creator>dbent</dc:creator>
      <dc:date>2010-06-15T14:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Complex sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complex-sort-question/m-p/4647993#M614110</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# sort -k2,2 -kr1,1 file &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 15 Jun 2010 14:51:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complex-sort-question/m-p/4647993#M614110</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-15T14:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Complex sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/complex-sort-question/m-p/4647994#M614111</link>
      <description>That worked!  Big thanks!</description>
      <pubDate>Tue, 15 Jun 2010 15:11:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/complex-sort-question/m-p/4647994#M614111</guid>
      <dc:creator>dbent</dc:creator>
      <dc:date>2010-06-15T15:11:47Z</dc:date>
    </item>
  </channel>
</rss>

