<?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: cmp command !!! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715864#M251853</link>
    <description>The best possible comparison is the cksum command; it will work on files of any type. If the CRC cksums are equal, the files are exactly the same.</description>
    <pubDate>Mon, 23 Jan 2006 19:26:35 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-01-23T19:26:35Z</dc:date>
    <item>
      <title>cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715862#M251851</link>
      <description>I'm making some tests of restoring some files from omniback.&lt;BR /&gt;&lt;BR /&gt;i wish compare both files, the file restored and file living in the path.&lt;BR /&gt;How can i compare them?&lt;BR /&gt;can i use diff command?&lt;BR /&gt;can i use cmp command?&lt;BR /&gt;&lt;BR /&gt;How can i use cmp command ?&lt;BR /&gt;&lt;BR /&gt;Thanks, Manuales.&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Jan 2006 18:56:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715862#M251851</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-01-23T18:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715863#M251852</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I know for ascii files you can use the diff command.&lt;BR /&gt;&lt;BR /&gt;For an alternative.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.thefreecountry.com/programming/filecomparison.shtml" target="_blank"&gt;http://www.thefreecountry.com/programming/filecomparison.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The diff command may have a binary switch, but I can't remember right now. See the man page for my memory gap.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 23 Jan 2006 19:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715863#M251852</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-01-23T19:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715864#M251853</link>
      <description>The best possible comparison is the cksum command; it will work on files of any type. If the CRC cksums are equal, the files are exactly the same.</description>
      <pubDate>Mon, 23 Jan 2006 19:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715864#M251853</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-01-23T19:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715865#M251854</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;As Clay noted, a definitive file comparison test is  the 'cksum' command.  You can compare binary or ASCII files in this manner.&lt;BR /&gt;&lt;BR /&gt;Compare the checksums of the files in the corresponding directories to determine if the contents of two directories are the same.&lt;BR /&gt;&lt;BR /&gt;Blocks are be allocated to a directory as files are added, but the blocks are not returned when files are deleted.  Thus you will often see a replicated directory's size smaller than its source directory.  This is of no concern if the checksums of the *contents* of the two directories match.&lt;BR /&gt;&lt;BR /&gt;'diff' and 'bdiff' can examine directories recursively, if both arguments are directories.  'diff' then sorts the contents of the directories by name, and runs on *text* files that have the same name in each directory.&lt;BR /&gt;&lt;BR /&gt;See the manpages for more information.&lt;BR /&gt; &lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 23 Jan 2006 19:42:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715865#M251854</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-23T19:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715866#M251855</link>
      <description>Hi (again) Manuales:&lt;BR /&gt;&lt;BR /&gt;I should not have suggested that 'diff' will not compare binary files.  It will.  Instead of reporting the differences as it does with ASCII files, it will report, for example:&lt;BR /&gt;&lt;BR /&gt;"Binary files /tmp/file1 and /tmp/file2 differ"&lt;BR /&gt;&lt;BR /&gt;Using 'cksum' one can compare the computed value of the two files for equality.&lt;BR /&gt;&lt;BR /&gt;/No_Points Please For This Clarification/&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 23 Jan 2006 19:58:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715866#M251855</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-01-23T19:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715867#M251856</link>
      <description>Manuales ,&lt;BR /&gt;&lt;BR /&gt;Check with cksum, it gives best result, to check and compare two file. The checksum value should be same for both the case.&lt;BR /&gt;&lt;BR /&gt;furthre # man cksum&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.</description>
      <pubDate>Mon, 23 Jan 2006 20:33:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715867#M251856</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2006-01-23T20:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715868#M251857</link>
      <description>It is not good to use diff or cmp commands with all files. It cannot compare on binary files.&lt;BR /&gt;&lt;BR /&gt;Try to use cksum command to get difference.&lt;BR /&gt;&lt;BR /&gt;cksum file1 file2&lt;BR /&gt;&lt;BR /&gt;will give the details.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Tue, 24 Jan 2006 00:28:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715868#M251857</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-01-24T00:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715869#M251858</link>
      <description>Hi Manuales, &lt;BR /&gt;&lt;BR /&gt;You can use "cksum" suggested by unix gurus here. As well, if you want to have a try with something else, look at md5cksum. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=md5checksum" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=md5checksum&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 24 Jan 2006 00:34:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715869#M251858</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-24T00:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715870#M251859</link>
      <description>Hi, i have already executed next:&lt;BR /&gt;# cksum log_g13m1.dbf log_g13m1.dbf.back &lt;BR /&gt;2219005271 52429824 log_g13m1.dbf&lt;BR /&gt;3688632956 52429824 log_g13m1.dbf.back&lt;BR /&gt;&lt;BR /&gt;my doubt now is:&lt;BR /&gt;what is the meanning of first and second field?&lt;BR /&gt;&lt;BR /&gt;Manuales.</description>
      <pubDate>Tue, 24 Jan 2006 11:56:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715870#M251859</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2006-01-24T11:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715871#M251860</link>
      <description>Hi Manuales, &lt;BR /&gt;&lt;BR /&gt;First field is the check sum value and second field is size of the file. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 24 Jan 2006 11:59:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715871#M251860</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-01-24T11:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715872#M251861</link>
      <description>The first number is the CRC and the second is the size of the file in bytes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 24 Jan 2006 11:59:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715872#M251861</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-01-24T11:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: cmp command !!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715873#M251862</link>
      <description>If you had simply bothered to do a "man cksum", you would have your answer.</description>
      <pubDate>Tue, 24 Jan 2006 12:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cmp-command/m-p/3715873#M251862</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-01-24T12:20:24Z</dc:date>
    </item>
  </channel>
</rss>

