<?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: Basic HPUX  Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812517#M827115</link>
    <description>Hi Mark ,&lt;BR /&gt;&lt;BR /&gt;take out one coloumn from the file ABC and "paste" the file ABC to XYZ.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
    <pubDate>Tue, 24 Sep 2002 15:35:36 GMT</pubDate>
    <dc:creator>Sandip Ghosh</dc:creator>
    <dc:date>2002-09-24T15:35:36Z</dc:date>
    <item>
      <title>Basic HPUX  Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812515#M827111</link>
      <description>I'm a HPUX rookie and have what I believe is probably a simple question. I'm having trouble combining columns of two text files.  For example I have a file XYZ with columns A &amp;amp; B.  I have another file ABC with columns A &amp;amp; C.  I want to add column C to file XYZ so then file XYZ has columns A, B &amp;amp; C.  I think either&lt;BR /&gt;the functions "sort" or "join" can do this, but can't figure out how.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance to anyone who can answer this question or lead me in the right direction.&lt;BR /&gt;&lt;BR /&gt;Mark&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Sep 2002 15:26:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812515#M827111</guid>
      <dc:creator>Mark Hess</dc:creator>
      <dc:date>2002-09-24T15:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Basic HPUX  Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812516#M827113</link>
      <description>Hi Mark:&lt;BR /&gt;&lt;BR /&gt;See 'paste'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 24 Sep 2002 15:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812516#M827113</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-24T15:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Basic HPUX  Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812517#M827115</link>
      <description>Hi Mark ,&lt;BR /&gt;&lt;BR /&gt;take out one coloumn from the file ABC and "paste" the file ABC to XYZ.&lt;BR /&gt;&lt;BR /&gt;Sandip</description>
      <pubDate>Tue, 24 Sep 2002 15:35:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812517#M827115</guid>
      <dc:creator>Sandip Ghosh</dc:creator>
      <dc:date>2002-09-24T15:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Basic HPUX  Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812518#M827117</link>
      <description>If column A is the "key" to each of the files, then-&lt;BR /&gt;&lt;BR /&gt;join -j1 1 -j2 1 -o1.1,1.2,2.2 ABC XYZ &amp;gt;NEWXYZ&lt;BR /&gt;&lt;BR /&gt;Should work for you. This assumes blank or tab is the field seperator.&lt;BR /&gt;&lt;BR /&gt;Use -t: if you wanted to use ":" as seperator.&lt;BR /&gt;Use -a2 to send unmatched lines to STDERR.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Sep 2002 16:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812518#M827117</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-09-24T16:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Basic HPUX  Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812519#M827118</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;paste is the most easy if the same line numbers in the two files shall be matched. In other cases (and if it is a one to many matching relation you have to use join). Note , if using join the files need to be sorted on the matching column.</description>
      <pubDate>Tue, 24 Sep 2002 18:43:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812519#M827118</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-09-24T18:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Basic HPUX  Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812520#M827119</link>
      <description>Hi Mark,&lt;BR /&gt;Assuming tab as the deliminator, do this :&lt;BR /&gt;paste XYZ ABC | cut -f 1,2,4 &amp;gt; JOINED&lt;BR /&gt;&lt;BR /&gt;Use the -d option to specify deliminator if tab is not the correct one.  man cut for more information.</description>
      <pubDate>Wed, 25 Sep 2002 00:17:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812520#M827119</guid>
      <dc:creator>Chia-Wei</dc:creator>
      <dc:date>2002-09-25T00:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Basic HPUX  Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812521#M827120</link>
      <description>Mark,&lt;BR /&gt;&lt;BR /&gt;You can combine the files as follows:&lt;BR /&gt;&lt;BR /&gt;pr -m -t -s' ' XYZ ABC | awk '{ print $1, $2, $4 }'&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Joseph.</description>
      <pubDate>Wed, 25 Sep 2002 06:20:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/basic-hpux-question/m-p/2812521#M827120</guid>
      <dc:creator>Joseph A Benaiah_1</dc:creator>
      <dc:date>2002-09-25T06:20:45Z</dc:date>
    </item>
  </channel>
</rss>

