<?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: Diff in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260799#M176965</link>
    <description>Watch out for comm's prerequisite.&lt;BR /&gt;The input files need to be sorted.&lt;BR /&gt;You could sort into temporary files before using comm.&lt;BR /&gt;&lt;BR /&gt;The suggestion using uniq would be broken by lines that are duplicated within one file.</description>
    <pubDate>Wed, 28 Apr 2004 12:25:43 GMT</pubDate>
    <dc:creator>Mike Stroyan</dc:creator>
    <dc:date>2004-04-28T12:25:43Z</dc:date>
    <item>
      <title>Diff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260792#M176958</link>
      <description>Hi&lt;BR /&gt;I want to do a diff between two files and want output that lines not present in second file.&lt;BR /&gt;&lt;BR /&gt;Ex diff file1 file2&lt;BR /&gt;output only lines present in file1 and not file2.&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 27 Apr 2004 14:54:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260792#M176958</guid>
      <dc:creator>Vanquish</dc:creator>
      <dc:date>2004-04-27T14:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Diff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260793#M176959</link>
      <description>Try the following&lt;BR /&gt;&lt;BR /&gt;comm -1 file1 file2&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Apr 2004 15:04:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260793#M176959</guid>
      <dc:creator>Charlie Rubeor</dc:creator>
      <dc:date>2004-04-27T15:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Diff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260794#M176960</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try &lt;BR /&gt;&lt;BR /&gt;sdiff -s file1 file2&lt;BR /&gt;&lt;BR /&gt;Do "man sdiff" for more details / help.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Apr 2004 15:11:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260794#M176960</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-04-27T15:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Diff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260795#M176961</link>
      <description>on hpux it is comm -23 file1 file2&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Scott</description>
      <pubDate>Tue, 27 Apr 2004 15:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260795#M176961</guid>
      <dc:creator>Scott Palmer_1</dc:creator>
      <dc:date>2004-04-27T15:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Diff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260796#M176962</link>
      <description>Charlie almost has it right. Comm shows three columns:&lt;BR /&gt;&lt;BR /&gt;Col1 = lines that appear ONLY in file1&lt;BR /&gt;Col2 = lines that appear ONLY in file2&lt;BR /&gt;col3 = lines that appear in both files&lt;BR /&gt;&lt;BR /&gt;To show only column one, you have to suppress the other two columns, so what you want is:&lt;BR /&gt;&lt;BR /&gt;comm -23 file1 file3&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Apr 2004 15:15:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260796#M176962</guid>
      <dc:creator>Shane Travis</dc:creator>
      <dc:date>2004-04-27T15:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Diff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260797#M176963</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;cat f1 f2 |sort -u &amp;gt;tmpf&lt;BR /&gt;cat f2 tmpf |sort |uniq -u&lt;BR /&gt;cat f1 tmpf |sort |uniq -u&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Apr 2004 15:16:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260797#M176963</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2004-04-27T15:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Diff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260798#M176964</link>
      <description>That should do it as well :&lt;BR /&gt;&lt;BR /&gt;diff file1 file2 | grep "^&amp;lt; " | cut -c3-</description>
      <pubDate>Tue, 27 Apr 2004 17:35:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260798#M176964</guid>
      <dc:creator>Juergen Tappe</dc:creator>
      <dc:date>2004-04-27T17:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Diff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260799#M176965</link>
      <description>Watch out for comm's prerequisite.&lt;BR /&gt;The input files need to be sorted.&lt;BR /&gt;You could sort into temporary files before using comm.&lt;BR /&gt;&lt;BR /&gt;The suggestion using uniq would be broken by lines that are duplicated within one file.</description>
      <pubDate>Wed, 28 Apr 2004 12:25:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260799#M176965</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-04-28T12:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Diff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260800#M176966</link>
      <description>If you would like to get some more answers and some explanations, I bet you will find this thread very interesting&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=388167" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=388167&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It went on after the question was answered, just as in your case&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 28 Apr 2004 13:53:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260800#M176966</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-04-28T13:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Diff</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260801#M176967</link>
      <description>Don't know if you are still having problems or not but thought I'd throw my two cents in.  I have needed to do this same thing myself and find the "sdiff" command the easiest to work with.  The sdiff command allows you to find  differences  between  two  files.  The options are VERY useful so I *HIGHLY* suggest you take a few minutes and look at the man page for sdiff.  There are some neat options like:&lt;BR /&gt;-s allows you to suppress the lines common in both files so all you see are the differences, and &lt;BR /&gt;-w allows you to set the width of each line, which is VERY useful if you have long lines.&lt;BR /&gt;&lt;BR /&gt;Suggest you try the following:&lt;BR /&gt;# sdiff -s -w132 file1 file2 |grep "   &amp;lt;   "&lt;BR /&gt;&lt;BR /&gt;The identifier of unique findings in file1 is noted by the &amp;lt; sign with whitespace around it, so use spaces not tabs in front of and after the &amp;lt; sign.&lt;BR /&gt;&lt;BR /&gt;Hope this helps, it works great for me.</description>
      <pubDate>Wed, 28 Apr 2004 22:41:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/diff/m-p/3260801#M176967</guid>
      <dc:creator>Dani Seely</dc:creator>
      <dc:date>2004-04-28T22:41:59Z</dc:date>
    </item>
  </channel>
</rss>

