<?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: help script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791502#M265103</link>
    <description>How about an ex construct:&lt;BR /&gt;&lt;BR /&gt;ex -s test &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;/^pro=/r !cat test2&lt;BR /&gt;/^base:/r !cat test3&lt;BR /&gt;wq&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;and output of the above construct is...&lt;BR /&gt;&lt;BR /&gt;cat test&lt;BR /&gt;pro=&lt;BR /&gt;pp.pp@pp.com&lt;BR /&gt;xxxx&lt;BR /&gt;xxxx&lt;BR /&gt;base:&lt;BR /&gt;pp.ogt@ko.com&lt;BR /&gt;&lt;BR /&gt;hope it helps!</description>
    <pubDate>Fri, 19 May 2006 17:26:11 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2006-05-19T17:26:11Z</dc:date>
    <item>
      <title>help script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791500#M265101</link>
      <description>hello i have a file wiht field : prog and base&lt;BR /&gt;file: test&lt;BR /&gt;cat test&lt;BR /&gt;pro=&lt;BR /&gt;xxxx&lt;BR /&gt;xxxx&lt;BR /&gt;base:&lt;BR /&gt;&lt;BR /&gt;I need add in pro=  the contains of file: test2&lt;BR /&gt;cat test2&lt;BR /&gt;pp.pp@pp.com&lt;BR /&gt;...&lt;BR /&gt;and add in base: the contains of file :test3&lt;BR /&gt;cat test3&lt;BR /&gt;pp.ogt@ko.com&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;script :&lt;BR /&gt;fo i in `test1`&lt;BR /&gt;do&lt;BR /&gt;cat test |sed.</description>
      <pubDate>Fri, 19 May 2006 13:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791500#M265101</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2006-05-19T13:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: help script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791501#M265102</link>
      <description>How about the following-&lt;BR /&gt; &lt;BR /&gt;perl -n -e 'BEGIN{@test2=`cat test2`;@test3=`cat test3`}{if (/^pro=/) { print @test2;} elsif (/^base:/) { print @test3;} else { print $_}}' test &amp;gt;newtest&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 19 May 2006 14:35:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791501#M265102</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2006-05-19T14:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: help script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791502#M265103</link>
      <description>How about an ex construct:&lt;BR /&gt;&lt;BR /&gt;ex -s test &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;/^pro=/r !cat test2&lt;BR /&gt;/^base:/r !cat test3&lt;BR /&gt;wq&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;and output of the above construct is...&lt;BR /&gt;&lt;BR /&gt;cat test&lt;BR /&gt;pro=&lt;BR /&gt;pp.pp@pp.com&lt;BR /&gt;xxxx&lt;BR /&gt;xxxx&lt;BR /&gt;base:&lt;BR /&gt;pp.ogt@ko.com&lt;BR /&gt;&lt;BR /&gt;hope it helps!</description>
      <pubDate>Fri, 19 May 2006 17:26:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791502#M265103</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-05-19T17:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: help script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791503#M265104</link>
      <description>the ouput will have to be:&lt;BR /&gt;&lt;BR /&gt;cat test&lt;BR /&gt;pro=xxx&lt;BR /&gt;base=pp.ogt@ko.com</description>
      <pubDate>Tue, 23 May 2006 09:00:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791503#M265104</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2006-05-23T09:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: help script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791504#M265105</link>
      <description>pro=xxx ???&lt;BR /&gt; &lt;BR /&gt;I thought you wanted pro= to have the contents of file test2 which you show as pp.pp@pp.com.&lt;BR /&gt; &lt;BR /&gt;Your description of the problem is a little unclear.&lt;BR /&gt; &lt;BR /&gt;Rod Hills</description>
      <pubDate>Tue, 23 May 2006 09:17:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791504#M265105</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2006-05-23T09:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: help script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791505#M265106</link>
      <description>Jairo,&lt;BR /&gt;&lt;BR /&gt;Could you please provide a sample of how the input looks like and how the output should look like.&lt;BR /&gt;&lt;BR /&gt;cat test&lt;BR /&gt;pro=xxx&lt;BR /&gt;base=pp.ogt@ko.com&lt;BR /&gt;&lt;BR /&gt;this does not show where the contents of file test2 have been added to?</description>
      <pubDate>Tue, 23 May 2006 11:19:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791505#M265106</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-05-23T11:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: help script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791506#M265107</link>
      <description>Yes the file ouput it will be &lt;BR /&gt;&lt;BR /&gt;cat test&lt;BR /&gt;pro=mail@test.com&lt;BR /&gt;base:mail2@test567.com&lt;BR /&gt;&lt;BR /&gt;the field pro=&lt;BR /&gt;base:&lt;BR /&gt;is variable&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jun 2006 16:54:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script/m-p/3791506#M265107</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2006-06-14T16:54:14Z</dc:date>
    </item>
  </channel>
</rss>

