<?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: uniq/sort question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165512#M681544</link>
    <description>Thread closed!</description>
    <pubDate>Tue, 24 Mar 2009 13:19:07 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens_1</dc:creator>
    <dc:date>2009-03-24T13:19:07Z</dc:date>
    <item>
      <title>uniq/sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165505#M681537</link>
      <description>Below is a list of multipath devices (luns), is possible to sort the list based on the serial?&lt;BR /&gt;&lt;BR /&gt;# egrep -e "Serial|Unformatted" /tmp/rj-lun&lt;BR /&gt;  Serial Num:           10328022C008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022C008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022D008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022D008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022E008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022E008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022F008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022F008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280230008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280230008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280231008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280231008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280232008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280232008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280233008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280233008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280234008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280234008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280235008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280235008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280236008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280236008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280237008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280237008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280238008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280238008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280F3C000&lt;BR /&gt;  Unformatted capacity: 51937.500 MBytes&lt;BR /&gt;  Serial Num:           103280F3C000&lt;BR /&gt;  Unformatted capacity: 51937.500 MBytes&lt;BR /&gt;  Serial Num:           103280F3E000&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280F3E000&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022C008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022C008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022D008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022D008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022E008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022E008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022F008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022F008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280230008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280230008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280231008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280231008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280232008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280232008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280233008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280233008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280234008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280234008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280235008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280235008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280236008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280236008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280237008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280237008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280238008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280238008&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280F3C000&lt;BR /&gt;  Unformatted capacity: 51937.500 MBytes&lt;BR /&gt;  Serial Num:           103280F3C000&lt;BR /&gt;  Unformatted capacity: 51937.500 MBytes&lt;BR /&gt;  Serial Num:           103280F3E000&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280F3E000&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 23 Mar 2009 12:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165505#M681537</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2009-03-23T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: uniq/sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165506#M681538</link>
      <description>Hi Robert-Jan:&lt;BR /&gt;&lt;BR /&gt;If the issue is that each line shown is a separate line, then join the lines and pipe them to a sort:&lt;BR /&gt;&lt;BR /&gt;# paste -s -d"\t\n" | sort -k3,3&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Mar 2009 13:15:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165506#M681538</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-23T13:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: uniq/sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165507#M681539</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;# paste -s -d"\t\n" | sort -u -k3,3&lt;BR /&gt;&lt;BR /&gt;...since your subject line suggested unique values, too.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 23 Mar 2009 13:17:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165507#M681539</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-23T13:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: uniq/sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165508#M681540</link>
      <description>Thanks for your time James!&lt;BR /&gt;&lt;BR /&gt;This is the information I need but I will loose the combined serial size info about the lun. &lt;BR /&gt;&lt;BR /&gt;# paste -s -d"\t\n" | sort -u -k3,3 /tmp/rj-lun2&lt;BR /&gt;  Serial Num:           10328022C008&lt;BR /&gt;  Serial Num:           10328022D008&lt;BR /&gt;  Serial Num:           10328022E008&lt;BR /&gt;  Serial Num:           10328022F008&lt;BR /&gt;  Serial Num:           103280230008&lt;BR /&gt;  Serial Num:           103280231008&lt;BR /&gt;  Serial Num:           103280232008&lt;BR /&gt;  Serial Num:           103280233008&lt;BR /&gt;  Serial Num:           103280234008&lt;BR /&gt;  Serial Num:           103280235008&lt;BR /&gt;  Serial Num:           103280236008&lt;BR /&gt;  Serial Num:           103280237008&lt;BR /&gt;  Serial Num:           103280238008&lt;BR /&gt;  Serial Num:           103280F3C000&lt;BR /&gt;  Serial Num:           103280F3E000&lt;BR /&gt;  Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Unformatted capacity: 51937.500 MBytes&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 23 Mar 2009 13:27:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165508#M681540</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2009-03-23T13:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: uniq/sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165509#M681541</link>
      <description>Hi (again) Robert-Jan:&lt;BR /&gt;&lt;BR /&gt;I meant to write thusly:&lt;BR /&gt;&lt;BR /&gt;# paste -s -d"\t\n" file | sort -k3,3&lt;BR /&gt;&lt;BR /&gt;or:&lt;BR /&gt;&lt;BR /&gt;# paste -s -d"\t\n" file | sort -u -k3,3&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 23 Mar 2009 13:31:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165509#M681541</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-23T13:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: uniq/sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165510#M681542</link>
      <description>Thanks a lot James!&lt;BR /&gt;&lt;BR /&gt;# paste -s -d"\t\n" /tmp/rj-lun2 | sort -u -k3,3&lt;BR /&gt;  Serial Num:           10328022C008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022D008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022E008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           10328022F008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280230008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280231008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280232008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280233008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280234008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280235008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280236008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280237008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280238008      Unformatted capacity: 25968.750 MBytes&lt;BR /&gt;  Serial Num:           103280F3C000      Unformatted capacity: 51937.500 MBytes&lt;BR /&gt;  Serial Num:           103280F3E000      Unformatted capacity: 25968.750 MBytes</description>
      <pubDate>Mon, 23 Mar 2009 13:38:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165510#M681542</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2009-03-23T13:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: uniq/sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165511#M681543</link>
      <description>&lt;!--!*#--&gt;Another solution with awk:&lt;BR /&gt;&lt;BR /&gt;awk '/Serial/ {getline line;print $0,line}' FILENAME | sort -n -k 3&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2009 12:40:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165511#M681543</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-03-24T12:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: uniq/sort question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165512#M681544</link>
      <description>Thread closed!</description>
      <pubDate>Tue, 24 Mar 2009 13:19:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/uniq-sort-question/m-p/5165512#M681544</guid>
      <dc:creator>Robert-Jan Goossens_1</dc:creator>
      <dc:date>2009-03-24T13:19:07Z</dc:date>
    </item>
  </channel>
</rss>

