<?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 numerically on second field in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623888#M926397</link>
    <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;oopsie, I thought you want it on the second field of the date :)&lt;BR /&gt;&lt;BR /&gt;The solution is:&lt;BR /&gt;&lt;BR /&gt;swlist -a install_date|grep OC|sort -n -k2&lt;BR /&gt;&lt;BR /&gt;E.</description>
    <pubDate>Mon, 03 Dec 2001 11:57:38 GMT</pubDate>
    <dc:creator>Eugen Cocalea</dc:creator>
    <dc:date>2001-12-03T11:57:38Z</dc:date>
    <item>
      <title>sort numerically on second field</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623884#M926393</link>
      <description>output as follows,&lt;BR /&gt;OC-ISUP-ANSI                200110311815.39&lt;BR /&gt;OC-ISUP-ANSI-P352           200110311819.37&lt;BR /&gt;OC-SS7-AAA                  200110311420.41&lt;BR /&gt;OC-SS7-AAA-P119             200110311422.15&lt;BR /&gt;OC-SS7-AAA-P122             200110311421.31&lt;BR /&gt;OC-SS7-P294                 200110311754.10&lt;BR /&gt;OC-SS7-P396                 200110311755.58&lt;BR /&gt;OC-TSC                      200110311744.45&lt;BR /&gt;OC-TSC-P315                 200110311814.33&lt;BR /&gt;&lt;BR /&gt;how can I, with sort, list the output in a ascending numerical order.&lt;BR /&gt;as you can see, it's sorting alphabetically/numerically on the first field.&lt;BR /&gt;&lt;BR /&gt;The command to produce this btw is:&lt;BR /&gt;# swlist -a install_date | grep OC           &lt;BR /&gt;&lt;BR /&gt;Thanks to Robin for that!&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Dec 2001 11:39:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623884#M926393</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-12-03T11:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: sort numerically on second field</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623885#M926394</link>
      <description>hi, &lt;BR /&gt;&lt;BR /&gt;swlist -a install_date | grep OC | sort -k2&lt;BR /&gt;&lt;BR /&gt;;-)&lt;BR /&gt;Thierry.</description>
      <pubDate>Mon, 03 Dec 2001 11:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623885#M926394</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-12-03T11:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: sort numerically on second field</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623886#M926395</link>
      <description>Technically, it should be &lt;BR /&gt;&lt;BR /&gt;swlist -a install_date | grep OC | sort -n -k2 &lt;BR /&gt;&lt;BR /&gt;notice the -n which tells sort to order numerically rather then lexographically.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Mon, 03 Dec 2001 11:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623886#M926395</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-12-03T11:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: sort numerically on second field</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623887#M926396</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;swlist -a install_date|grep OC|sort -k 2,2 -t '.'&lt;BR /&gt;&lt;BR /&gt;E.</description>
      <pubDate>Mon, 03 Dec 2001 11:55:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623887#M926396</guid>
      <dc:creator>Eugen Cocalea</dc:creator>
      <dc:date>2001-12-03T11:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: sort numerically on second field</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623888#M926397</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;oopsie, I thought you want it on the second field of the date :)&lt;BR /&gt;&lt;BR /&gt;The solution is:&lt;BR /&gt;&lt;BR /&gt;swlist -a install_date|grep OC|sort -n -k2&lt;BR /&gt;&lt;BR /&gt;E.</description>
      <pubDate>Mon, 03 Dec 2001 11:57:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sort-numerically-on-second-field/m-p/2623888#M926397</guid>
      <dc:creator>Eugen Cocalea</dc:creator>
      <dc:date>2001-12-03T11:57:38Z</dc:date>
    </item>
  </channel>
</rss>

