<?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: ksh help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903288#M105495</link>
    <description>If the files are sortted then-&lt;BR /&gt;&lt;BR /&gt;join -v 1 file1 file2&lt;BR /&gt;&lt;BR /&gt;will display only the lines that aren't in file1. -v 2 will display unmatched in file2.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
    <pubDate>Wed, 12 Feb 2003 22:05:11 GMT</pubDate>
    <dc:creator>Rodney Hills</dc:creator>
    <dc:date>2003-02-12T22:05:11Z</dc:date>
    <item>
      <title>ksh help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903285#M105492</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have two files, file1 and file,&lt;BR /&gt;&lt;BR /&gt;file1:             file2:&lt;BR /&gt;line1              line1&lt;BR /&gt;line2              line3&lt;BR /&gt;line3              line4&lt;BR /&gt;line4              line7&lt;BR /&gt;line5              line8&lt;BR /&gt;line6              ...&lt;BR /&gt;line7&lt;BR /&gt;line8&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;I wanted to find out all lines, which is in file1 but not in file2, ex line2, line5, and line6...&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Roger</description>
      <pubDate>Wed, 12 Feb 2003 21:55:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903285#M105492</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2003-02-12T21:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: ksh help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903286#M105493</link>
      <description>Hi Roger,&lt;BR /&gt;The easiest way is: diff file1 file2&lt;BR /&gt;The output will tell you wihch lines do not match exactly. "&amp;lt;" means the line is in file1 only,&lt;BR /&gt;"&amp;gt;" means it is in file2 only.</description>
      <pubDate>Wed, 12 Feb 2003 22:02:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903286#M105493</guid>
      <dc:creator>Randy Tarrier</dc:creator>
      <dc:date>2003-02-12T22:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: ksh help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903287#M105494</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It sounds like you need the 'comm' command.  It will show you lines that are common between the files.  Try this:&lt;BR /&gt;&lt;BR /&gt;comm -23 file1 file2&lt;BR /&gt;&lt;BR /&gt;to see the lines that are in file1 but not in file2.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Feb 2003 22:04:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903287#M105494</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-02-12T22:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: ksh help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903288#M105495</link>
      <description>If the files are sortted then-&lt;BR /&gt;&lt;BR /&gt;join -v 1 file1 file2&lt;BR /&gt;&lt;BR /&gt;will display only the lines that aren't in file1. -v 2 will display unmatched in file2.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Wed, 12 Feb 2003 22:05:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903288#M105495</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2003-02-12T22:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: ksh help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903289#M105496</link>
      <description>Like some of the others, I like the diff command, but here's a little more complex version that you can do from the command prompt:&lt;BR /&gt;for LINE in `cat file1`&lt;BR /&gt;do&lt;BR /&gt;    LINE2=`grep $LINE file2`&lt;BR /&gt;    if test "$LINE2"&lt;BR /&gt;    then&lt;BR /&gt;          :&lt;BR /&gt;    else&lt;BR /&gt;          echo "$LINE not found in file2"&lt;BR /&gt;    fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Good luck, and happy shell scripting!&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 12 Feb 2003 22:18:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903289#M105496</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-02-12T22:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: ksh help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903290#M105497</link>
      <description>cat file1 |grep -v -f file2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;should work fine...</description>
      <pubDate>Thu, 13 Feb 2003 21:39:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-help/m-p/2903290#M105497</guid>
      <dc:creator>monasingh_1</dc:creator>
      <dc:date>2003-02-13T21:39:18Z</dc:date>
    </item>
  </channel>
</rss>

