<?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: commands for comparing two files .. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751848#M656604</link>
    <description>i think i have it with command "comm"&lt;BR /&gt;&lt;BR /&gt;=====================&lt;BR /&gt;EJEMPLO&lt;BR /&gt;=========================&lt;BR /&gt;$ cat a&lt;BR /&gt;cuatro&lt;BR /&gt;diez&lt;BR /&gt;dos&lt;BR /&gt;n&lt;BR /&gt;och&lt;BR /&gt;seis&lt;BR /&gt;siete&lt;BR /&gt;tres&lt;BR /&gt;uno&lt;BR /&gt;$&lt;BR /&gt;$ cat b&lt;BR /&gt;cinco&lt;BR /&gt;cuat&lt;BR /&gt;dos&lt;BR /&gt;nueve&lt;BR /&gt;t&lt;BR /&gt;tres&lt;BR /&gt;I need to know what i have i "a" and not in "b"&lt;BR /&gt;$ comm -23 a b   &lt;BR /&gt;cuatro&lt;BR /&gt;diez&lt;BR /&gt;n&lt;BR /&gt;och&lt;BR /&gt;seis&lt;BR /&gt;siete&lt;BR /&gt;uno&lt;BR /&gt;&lt;BR /&gt;is this correct? i think yes.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 12 Feb 2011 04:21:36 GMT</pubDate>
    <dc:creator>Manuales</dc:creator>
    <dc:date>2011-02-12T04:21:36Z</dc:date>
    <item>
      <title>commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751840#M656596</link>
      <description>Hi &lt;BR /&gt;I have to compare two files .. i used diff&lt;BR /&gt;&lt;BR /&gt;diff -Cn file1 file 2 &lt;BR /&gt;i see this sign "!" what does that mean?&lt;BR /&gt;&lt;BR /&gt;what other command could help me to compare two files? in theory they should have the same information so i have to see why they are different .. the information are paths ..&lt;BR /&gt;&lt;BR /&gt;please your help&lt;BR /&gt;thanks.</description>
      <pubDate>Fri, 11 Feb 2011 20:52:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751840#M656596</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2011-02-11T20:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751841#M656597</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I have to compare two files [...]&lt;BR /&gt;&lt;BR /&gt;Where?&lt;BR /&gt;&lt;BR /&gt;      uname -a&lt;BR /&gt;&lt;BR /&gt;&amp;gt; i see this sign "!" what does that mean?&lt;BR /&gt;&lt;BR /&gt;That might depend on the (invisible) context.&lt;BR /&gt;&lt;BR /&gt;      man diff&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] the information are paths ..&lt;BR /&gt;&lt;BR /&gt;That tells me less than you might think.</description>
      <pubDate>Fri, 11 Feb 2011 21:05:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751841#M656597</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-02-11T21:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751842#M656598</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As mentioned above, it is difficult to provide you with an exact answer without the actual diff output.&lt;BR /&gt;&lt;BR /&gt;Nevertheless, a "!" represents a change between lines that correspond in the two files.&lt;BR /&gt;&lt;BR /&gt;See: &lt;A href="http://en.wikipedia.org/wiki/Diff" target="_blank"&gt;http://en.wikipedia.org/wiki/Diff&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sangilak</description>
      <pubDate>Fri, 11 Feb 2011 21:18:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751842#M656598</guid>
      <dc:creator>sangilak</dc:creator>
      <dc:date>2011-02-11T21:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751843#M656599</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;The '!' notation means that the line is *not* present.  Just as you use '!' to negate an expression...&lt;BR /&gt;&lt;BR /&gt;Using the '-C' or '-c' offers differences in context.&lt;BR /&gt;&lt;BR /&gt;Look at the manpages and the files you are comparing.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 11 Feb 2011 21:26:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751843#M656599</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-02-11T21:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751844#M656600</link>
      <description>i am trying with&lt;BR /&gt;&lt;BR /&gt;grep -vf file1 file2&lt;BR /&gt;i think it is easier than diff</description>
      <pubDate>Fri, 11 Feb 2011 23:57:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751844#M656600</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2011-02-11T23:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751845#M656601</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; grep -vf file1 file2&lt;BR /&gt;&amp;gt; i think it is easier than diff&lt;BR /&gt;&lt;BR /&gt;Depending on your objective (and whether or not the files are sorted or not and/or have meaningful sequences of lines, suggests things like 'grep', 'diff', 'comm', or a bit of my favorite (Perl) come to mind for file "comparisons".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 12 Feb 2011 00:20:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751845#M656601</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-02-12T00:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751846#M656602</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;I would add that 'diff' has a larger value than merely reporting the differences in two files.  The output of 'diff' can be used to create file2 from file1 using either 'ed(1)' or 'patch(1)'.&lt;BR /&gt;&lt;BR /&gt;Have a look at the manpages for 'diff(1)' and for 'patch(1)' for more insight.&lt;BR /&gt;&lt;BR /&gt;As a bit of UNIX history trivia, the original author of the 'patch' utility was one Larry Wall --- who later invented the the Perl language and who continues to shepard its evolution (with many others) today.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 12 Feb 2011 01:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751846#M656602</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-02-12T01:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751847#M656603</link>
      <description>Let me give you an example:&lt;BR /&gt;&lt;BR /&gt;I have file "a"&lt;BR /&gt;cuatro&lt;BR /&gt;diez&lt;BR /&gt;dos&lt;BR /&gt;n&lt;BR /&gt;och&lt;BR /&gt;seis&lt;BR /&gt;siete&lt;BR /&gt;tres&lt;BR /&gt;uno&lt;BR /&gt;&lt;BR /&gt;I have file "b"cinco&lt;BR /&gt;cuat&lt;BR /&gt;dos&lt;BR /&gt;nueve&lt;BR /&gt;t&lt;BR /&gt;tres&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1.- i want to have the output which shows me the lines that I do not have in the file b being compared with file a, this will be the output i want to get through commands coded:&lt;BR /&gt;cuatro&lt;BR /&gt;diez&lt;BR /&gt;n&lt;BR /&gt;och&lt;BR /&gt;seis&lt;BR /&gt;siete&lt;BR /&gt;uno&lt;BR /&gt;&lt;BR /&gt;2.- i want to have the output which shows me what words i do not have neither file a nor file b, it will be:&lt;BR /&gt;cuatro&lt;BR /&gt;diez&lt;BR /&gt;n&lt;BR /&gt;och&lt;BR /&gt;seis&lt;BR /&gt;siete&lt;BR /&gt;uno&lt;BR /&gt;cinco&lt;BR /&gt;cuat&lt;BR /&gt;nueve&lt;BR /&gt;t&lt;BR /&gt;&lt;BR /&gt;please your support.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 12 Feb 2011 03:54:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751847#M656603</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2011-02-12T03:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751848#M656604</link>
      <description>i think i have it with command "comm"&lt;BR /&gt;&lt;BR /&gt;=====================&lt;BR /&gt;EJEMPLO&lt;BR /&gt;=========================&lt;BR /&gt;$ cat a&lt;BR /&gt;cuatro&lt;BR /&gt;diez&lt;BR /&gt;dos&lt;BR /&gt;n&lt;BR /&gt;och&lt;BR /&gt;seis&lt;BR /&gt;siete&lt;BR /&gt;tres&lt;BR /&gt;uno&lt;BR /&gt;$&lt;BR /&gt;$ cat b&lt;BR /&gt;cinco&lt;BR /&gt;cuat&lt;BR /&gt;dos&lt;BR /&gt;nueve&lt;BR /&gt;t&lt;BR /&gt;tres&lt;BR /&gt;I need to know what i have i "a" and not in "b"&lt;BR /&gt;$ comm -23 a b   &lt;BR /&gt;cuatro&lt;BR /&gt;diez&lt;BR /&gt;n&lt;BR /&gt;och&lt;BR /&gt;seis&lt;BR /&gt;siete&lt;BR /&gt;uno&lt;BR /&gt;&lt;BR /&gt;is this correct? i think yes.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 12 Feb 2011 04:21:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751848#M656604</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2011-02-12T04:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751849#M656605</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I need to know what i have i "a" and not in "b"&lt;BR /&gt;&lt;BR /&gt;You are correct.   Since your files are sorted:&lt;BR /&gt;&lt;BR /&gt;# comm -23 a b&lt;BR /&gt;&lt;BR /&gt;That is, show all lines that appear in 'a' but not in 'b'. &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 12 Feb 2011 18:33:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751849#M656605</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-02-12T18:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751850#M656606</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt; # diff file1 file2&lt;BR /&gt;another way&lt;BR /&gt;# grep -vf file1 file2&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;INH</description>
      <pubDate>Mon, 14 Feb 2011 04:38:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751850#M656606</guid>
      <dc:creator>INH</dc:creator>
      <dc:date>2011-02-14T04:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: commands for comparing two files ..</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751851#M656607</link>
      <description>&amp;gt;INH: diff file1 file2&lt;BR /&gt;&amp;gt;grep -vf file1 file2&lt;BR /&gt;&lt;BR /&gt;The problem with the first is the extra metadata being output.&lt;BR /&gt;The second has N*N compares vs just N.  Of course you do have to sort both files.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2011 11:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/commands-for-comparing-two-files/m-p/4751851#M656607</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-02-14T11:40:03Z</dc:date>
    </item>
  </channel>
</rss>

