<?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: remove duplicate entries in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572873#M831233</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;i tried this:&lt;BR /&gt;==============&lt;BR /&gt;$ more 1.txt&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01_ap1.abc.com ; 1.23.5.36 ; Critical&lt;BR /&gt;uat01_ap1.abc.com ; 1.23.5.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;hissta01.abc.com ; 1.23.4.37 ; Critical&lt;BR /&gt;hissta01.abc.com ; 1.23.4.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;$ uniq 1.txt 2.txt&lt;BR /&gt;$ more 2.txt&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01_ap1.abc.com ; 1.23.5.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;hissta01.abc.com ; 1.23.4.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
    <pubDate>Wed, 29 Jun 2005 04:15:40 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2005-06-29T04:15:40Z</dc:date>
    <item>
      <title>remove duplicate entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572870#M831230</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am doing some batch processing of a file that I dump from NNM.  I only one to keep one unique entry based on the IP address.  For example I need to run the following&lt;BR /&gt;&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01_ap1.abc.com ; 1.23.5.36 ; Critical&lt;BR /&gt;uat01_ap1.abc.com ; 1.23.5.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;hissta01.abc.com ; 1.23.4.37 ; Critical&lt;BR /&gt;hissta01.abc.com ; 1.23.4.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;&lt;BR /&gt;into&lt;BR /&gt;&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01_ap1.abc.com ; 1.23.5.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;hissta01.abc.com ; 1.23.4.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical</description>
      <pubDate>Wed, 29 Jun 2005 03:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572870#M831230</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2005-06-29T03:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572871#M831231</link>
      <description>uniq old_file new_file&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Wed, 29 Jun 2005 04:03:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572871#M831231</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2005-06-29T04:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572872#M831232</link>
      <description>You can use like,&lt;BR /&gt;&lt;BR /&gt;  sort -u &lt;FILENAME&gt;&lt;BR /&gt;  &lt;BR /&gt;hth.&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Wed, 29 Jun 2005 04:12:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572872#M831232</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-29T04:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572873#M831233</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i tried this:&lt;BR /&gt;==============&lt;BR /&gt;$ more 1.txt&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01_ap1.abc.com ; 1.23.5.36 ; Critical&lt;BR /&gt;uat01_ap1.abc.com ; 1.23.5.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;hissta01.abc.com ; 1.23.4.37 ; Critical&lt;BR /&gt;hissta01.abc.com ; 1.23.4.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;$ uniq 1.txt 2.txt&lt;BR /&gt;$ more 2.txt&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01_ap1.abc.com ; 1.23.5.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;hissta01.abc.com ; 1.23.4.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Wed, 29 Jun 2005 04:15:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572873#M831233</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-06-29T04:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572874#M831234</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Use the "-d" option with "uniq" to list one copy only of each repeated line in the input file.&lt;BR /&gt;&lt;BR /&gt;$ more test&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;&lt;BR /&gt;$ uniq test&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;&lt;BR /&gt;Note: There are 2 entries for "www05_bck.abc.com "&lt;BR /&gt;&lt;BR /&gt;$ uniq -d test&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Shyjith</description>
      <pubDate>Wed, 29 Jun 2005 05:43:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572874#M831234</guid>
      <dc:creator>Shyjith P K</dc:creator>
      <dc:date>2005-06-29T05:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate entries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572875#M831235</link>
      <description>You can also try as,&lt;BR /&gt;&lt;BR /&gt;-- testfile--&lt;BR /&gt;your inputs&lt;BR /&gt;&lt;BR /&gt;# sort -mu testfile&lt;BR /&gt;www05_bck.abc.com ; 1.23.32.35 ; Critical&lt;BR /&gt;uat01.abc.com ; 1.23.4.36 ; Critical&lt;BR /&gt;uat01_ap1.abc.com ; 1.23.5.36 ; Critical&lt;BR /&gt;uat01_ap2.abc.com ; 1.23.6.36 ; Critical&lt;BR /&gt;uat01_bck.abc.com ; 1.23.32.36 ; Critical&lt;BR /&gt;hissta01.abc.com ; 1.23.4.37 ; Critical&lt;BR /&gt;hissta01_ap1.abc.com ; 1.23.5.37 ; Critical&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Wed, 29 Jun 2005 08:31:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-duplicate-entries/m-p/3572875#M831235</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-29T08:31:00Z</dc:date>
    </item>
  </channel>
</rss>

