<?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: Help on removing duplicate in 2 files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175066#M458804</link>
    <description>&amp;gt;I am doing this and not helping.&lt;BR /&gt;&amp;gt;for X in $(cat disk.list)&lt;BR /&gt;&lt;BR /&gt;You need to use vector methods:&lt;BR /&gt;fgrep -v -f disk.list new.disk.list&lt;BR /&gt;&lt;BR /&gt;This excludes all of the lines in disk.list from new.disk.list.  (Other options are needed of some lines are substrings of other longer ones, add -x.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;insert /dev/dsk in front of it using "sed".&lt;BR /&gt;&lt;BR /&gt;sed 's:^:/dev/dsk:' file</description>
    <pubDate>Thu, 14 May 2009 01:30:04 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-05-14T01:30:04Z</dc:date>
    <item>
      <title>Help on removing duplicate in 2 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175060#M458798</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have 2 files and trying to remove duplicates from these two files.&lt;BR /&gt;&lt;BR /&gt;How can I do this?&lt;BR /&gt;&lt;BR /&gt;Appreciate your help and thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 May 2009 21:03:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175060#M458798</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2009-05-13T21:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help on removing duplicate in 2 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175061#M458799</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;And what do you want to do with the duplicates --- retain them in one file or a new file or discard them from both?&lt;BR /&gt;&lt;BR /&gt;What constitutes a duplicate --- a whole matching line or just a field within a line?&lt;BR /&gt;&lt;BR /&gt;A bit better definition of the environment and the objective would be helpful.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 May 2009 21:21:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175061#M458799</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-13T21:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help on removing duplicate in 2 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175062#M458800</link>
      <description>Hello James,&lt;BR /&gt;&lt;BR /&gt;Absolutely, my bad.  I am trying to compare two files that has the list disk like /dev/dsk/cXtYdZ.  &lt;BR /&gt;&lt;BR /&gt;Basically, I donâ  t want to use the same disk that I have in LVMTAB and list I created.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 May 2009 21:46:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175062#M458800</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2009-05-13T21:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help on removing duplicate in 2 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175063#M458801</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;If I use "grep" by it self I can see the duplicate and give me the output that is in both files but I need to figure out which is not duplicate disk and not in use by other VG's on the systems.&lt;BR /&gt;&lt;BR /&gt;I am doing this and not helping.&lt;BR /&gt;&lt;BR /&gt;for X in $(cat disk.list)&lt;BR /&gt;do&lt;BR /&gt;grep ${X} new.disk.list&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;An "-v" option give me somethong different.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Appreciate your help.&lt;BR /&gt;&lt;BR /&gt;Thanks....</description>
      <pubDate>Wed, 13 May 2009 22:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175063#M458801</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2009-05-13T22:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help on removing duplicate in 2 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175064#M458802</link>
      <description>HI (again):&lt;BR /&gt;&lt;BR /&gt;You can use 'grep' and a file of the devices you want to sift:&lt;BR /&gt;&lt;BR /&gt;Given that '/etc/lvmtab' is a binary file, we need to use 'strings'.  You could do:&lt;BR /&gt;&lt;BR /&gt;#  strings /tmp/lvmtab|grep -v vg|grep -f /tmp/mydev&lt;BR /&gt;&lt;BR /&gt;...and:&lt;BR /&gt;&lt;BR /&gt;#  strings /tmp/lvmtab|grep -v vg|grep -v -f /tmp/mydev&lt;BR /&gt;&lt;BR /&gt;...where the /tmp/mydev file lists the devices one per line.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 13 May 2009 22:13:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175064#M458802</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-13T22:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help on removing duplicate in 2 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175065#M458803</link>
      <description>Hello James,&lt;BR /&gt;&lt;BR /&gt;I got the file ready by filtering the output from powermt command but now I am trying to insert /dev/dsk in front of it using "sed".&lt;BR /&gt;&lt;BR /&gt;Once, I have that done I think I will be in place.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Wed, 13 May 2009 23:15:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175065#M458803</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2009-05-13T23:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help on removing duplicate in 2 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175066#M458804</link>
      <description>&amp;gt;I am doing this and not helping.&lt;BR /&gt;&amp;gt;for X in $(cat disk.list)&lt;BR /&gt;&lt;BR /&gt;You need to use vector methods:&lt;BR /&gt;fgrep -v -f disk.list new.disk.list&lt;BR /&gt;&lt;BR /&gt;This excludes all of the lines in disk.list from new.disk.list.  (Other options are needed of some lines are substrings of other longer ones, add -x.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;insert /dev/dsk in front of it using "sed".&lt;BR /&gt;&lt;BR /&gt;sed 's:^:/dev/dsk:' file</description>
      <pubDate>Thu, 14 May 2009 01:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175066#M458804</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-05-14T01:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help on removing duplicate in 2 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175067#M458805</link>
      <description>Thanks for everyones help.  Appreciate that very much.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 May 2009 20:53:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-on-removing-duplicate-in-2-files/m-p/5175067#M458805</guid>
      <dc:creator>Mike_305</dc:creator>
      <dc:date>2009-05-15T20:53:48Z</dc:date>
    </item>
  </channel>
</rss>

