<?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 Concatenate using for in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/concatenate-using-for/m-p/5581541#M640388</link>
    <description>&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I concatenate 2 files using for? (bash - shell script)&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file1.txt&lt;/P&gt;&lt;P&gt;apple&lt;/P&gt;&lt;P&gt;banana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file2.txt&lt;/P&gt;&lt;P&gt;red&lt;/P&gt;&lt;P&gt;yellow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanna do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for FRUIT in file1.txt "AND" COLOR in file2.txt ; do&lt;/P&gt;&lt;P&gt;echo "The fruit $FRUIT is $COLOR ;&lt;/P&gt;&lt;P&gt;done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fruit apple is red&lt;/P&gt;&lt;P&gt;The fruit banana is yellow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to use this "AND".. To use 2 or more variables inside the for command..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could someone help me please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2012 21:07:44 GMT</pubDate>
    <dc:creator>Fefers</dc:creator>
    <dc:date>2012-03-12T21:07:44Z</dc:date>
    <item>
      <title>Concatenate using for</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/concatenate-using-for/m-p/5581541#M640388</link>
      <description>&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I concatenate 2 files using for? (bash - shell script)&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file1.txt&lt;/P&gt;&lt;P&gt;apple&lt;/P&gt;&lt;P&gt;banana&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;file2.txt&lt;/P&gt;&lt;P&gt;red&lt;/P&gt;&lt;P&gt;yellow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanna do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for FRUIT in file1.txt "AND" COLOR in file2.txt ; do&lt;/P&gt;&lt;P&gt;echo "The fruit $FRUIT is $COLOR ;&lt;/P&gt;&lt;P&gt;done&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fruit apple is red&lt;/P&gt;&lt;P&gt;The fruit banana is yellow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to use this "AND".. To use 2 or more variables inside the for command..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could someone help me please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2012 21:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/concatenate-using-for/m-p/5581541#M640388</guid>
      <dc:creator>Fefers</dc:creator>
      <dc:date>2012-03-12T21:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate using for</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/concatenate-using-for/m-p/5581551#M640389</link>
      <description>&lt;P&gt;If your input file is sorted correct I would do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;paste file1.txt file2.txt &amp;gt;&amp;gt; file3.txt&lt;/P&gt;&lt;P&gt;while read FRUIT COLOR&lt;/P&gt;&lt;P&gt;do&lt;/P&gt;&lt;P&gt;echo "The ${FRUIT} is ${COLOR}"&lt;/P&gt;&lt;P&gt;done &amp;lt; file3.txt&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2012 21:27:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/concatenate-using-for/m-p/5581551#M640389</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2012-03-12T21:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate using for</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/concatenate-using-for/m-p/5581569#M640390</link>
      <description>&lt;P&gt;Hi Patrick..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked! Exactly what I needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2012 21:53:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/concatenate-using-for/m-p/5581569#M640390</guid>
      <dc:creator>Fefers</dc:creator>
      <dc:date>2012-03-12T21:53:47Z</dc:date>
    </item>
  </channel>
</rss>

