<?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: Need a unique Diff command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382451#M864469</link>
    <description>Thanks for the information, the diff with the grep completely slip my mind, I am running it now as a test to see how long it takes and if if gives the database people the needed info.&lt;BR /&gt;&lt;BR /&gt;It is a sybase database dump to a flat file and zipped up for us.  We maintain a database for them and they haven't gotten into the update change only part yet, so all they can do is provide a full dump to a flat file and we turn around process it.  I am just the unix guy who is in charge of the sftp site and provide the nightly file to our database people to process and I am just trying to figure out a shorter process to do this.&lt;BR /&gt;&lt;BR /&gt;The comm -13 gives me the two sets of line the new and the old, I just one lines from the new file</description>
    <pubDate>Mon, 20 Sep 2004 10:26:32 GMT</pubDate>
    <dc:creator>Belinda Dermody</dc:creator>
    <dc:date>2004-09-20T10:26:32Z</dc:date>
    <item>
      <title>Need a unique Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382447#M864465</link>
      <description>Have a situation where we receive a full database dump each night 500+m from a client and for us to process it takes a long time and we have to break replication, &lt;BR /&gt;So my question is there a diff command that will ONLY give us the lines that are diff in the NEW file only from the old file or not in the old file.  So we only have to work with any changes or additions.</description>
      <pubDate>Mon, 20 Sep 2004 10:08:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382447#M864465</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2004-09-20T10:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need a unique Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382448#M864466</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;Wouldn't "diff file1 file2 |grep '&amp;gt;' " give you what you want?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 20 Sep 2004 10:12:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382448#M864466</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-09-20T10:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need a unique Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382449#M864467</link>
      <description>What would that database be?&lt;BR /&gt;&lt;BR /&gt;What kind of storage is the database on?&lt;BR /&gt;&lt;BR /&gt;What kind of backups are you doing?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 20 Sep 2004 10:13:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382449#M864467</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2004-09-20T10:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need a unique Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382450#M864468</link>
      <description>&lt;BR /&gt;Look like you could try: comm -13&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Sep 2004 10:18:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382450#M864468</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-09-20T10:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need a unique Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382451#M864469</link>
      <description>Thanks for the information, the diff with the grep completely slip my mind, I am running it now as a test to see how long it takes and if if gives the database people the needed info.&lt;BR /&gt;&lt;BR /&gt;It is a sybase database dump to a flat file and zipped up for us.  We maintain a database for them and they haven't gotten into the update change only part yet, so all they can do is provide a full dump to a flat file and we turn around process it.  I am just the unix guy who is in charge of the sftp site and provide the nightly file to our database people to process and I am just trying to figure out a shorter process to do this.&lt;BR /&gt;&lt;BR /&gt;The comm -13 gives me the two sets of line the new and the old, I just one lines from the new file</description>
      <pubDate>Mon, 20 Sep 2004 10:26:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382451#M864469</guid>
      <dc:creator>Belinda Dermody</dc:creator>
      <dc:date>2004-09-20T10:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need a unique Diff command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382452#M864470</link>
      <description>comm only works on sorted files&lt;BR /&gt;&lt;BR /&gt;diff file_old file_new | perl -ne's/^&amp;gt; // and print'&lt;BR /&gt;or&lt;BR /&gt;diff file_old file_new | grep '^&amp;gt;' | sed 's/^&amp;gt; //'&lt;BR /&gt;&lt;BR /&gt;would give you the new lines only&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Mon, 20 Sep 2004 10:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-unique-diff-command/m-p/3382452#M864470</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-09-20T10:32:46Z</dc:date>
    </item>
  </channel>
</rss>

