<?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: Shell Scripting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579332#M31592</link>
    <description>Hi Jayant,&lt;BR /&gt;&lt;BR /&gt;I am afraid i don't fully understand your question, but i'll try.&lt;BR /&gt;&lt;BR /&gt;cat $in_file | while read COL1 COL2&lt;BR /&gt;do&lt;BR /&gt;  command -a $COL1 -b $COL2&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;this will read two variables from the file "$in_file" and store it in $COl1 and $COL2 and for each line in the file execute the command.&lt;BR /&gt;&lt;BR /&gt;Is this what you were trying to do?&lt;BR /&gt;&lt;BR /&gt;-Regards&lt;BR /&gt;Ramesh</description>
    <pubDate>Fri, 14 Sep 2001 01:57:14 GMT</pubDate>
    <dc:creator>linuxfan</dc:creator>
    <dc:date>2001-09-14T01:57:14Z</dc:date>
    <item>
      <title>Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579331#M31591</link>
      <description>I am trying to build a command which will take the values for the options from any input file.&lt;BR /&gt;The input file has 2 fields like say,&lt;BR /&gt; a   b&lt;BR /&gt;abc xyz&lt;BR /&gt;&lt;BR /&gt;The following script is not useful in this case.&lt;BR /&gt;&lt;BR /&gt;for i in `cat $in_file|awk '{print $1}'`&lt;BR /&gt;do&lt;BR /&gt;command -a $i -b ?&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Can you suggest a method to overcome this situation.&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;&lt;BR /&gt;Jayant</description>
      <pubDate>Fri, 14 Sep 2001 01:46:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579331#M31591</guid>
      <dc:creator>Jayant Butte</dc:creator>
      <dc:date>2001-09-14T01:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579332#M31592</link>
      <description>Hi Jayant,&lt;BR /&gt;&lt;BR /&gt;I am afraid i don't fully understand your question, but i'll try.&lt;BR /&gt;&lt;BR /&gt;cat $in_file | while read COL1 COL2&lt;BR /&gt;do&lt;BR /&gt;  command -a $COL1 -b $COL2&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;this will read two variables from the file "$in_file" and store it in $COl1 and $COL2 and for each line in the file execute the command.&lt;BR /&gt;&lt;BR /&gt;Is this what you were trying to do?&lt;BR /&gt;&lt;BR /&gt;-Regards&lt;BR /&gt;Ramesh</description>
      <pubDate>Fri, 14 Sep 2001 01:57:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579332#M31592</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-09-14T01:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579333#M31593</link>
      <description>Hmm if I am not mistaking you have a command&lt;BR /&gt;with diffent options that and you want the out put for each options. lets do something like this. ..&lt;BR /&gt;&lt;BR /&gt;echo '-a option'&lt;BR /&gt;command -a &amp;gt;&amp;gt; file.txt &lt;BR /&gt;echo '####'&lt;BR /&gt;echo '-b option'&lt;BR /&gt;command -b &amp;gt;&amp;gt; file.txt &lt;BR /&gt;&lt;BR /&gt;and so on .. &lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Fri, 14 Sep 2001 02:23:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579333#M31593</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-09-14T02:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579334#M31594</link>
      <description>in lost Ramesh&lt;BR /&gt;Can you give me an example of a simple command that I can run with options like you said so I can see the output?&lt;BR /&gt;&lt;BR /&gt;Richard</description>
      <pubDate>Fri, 14 Sep 2001 02:30:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579334#M31594</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-09-14T02:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579335#M31595</link>
      <description>Thanks Ramesh,&lt;BR /&gt;Your suggestion was helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Jayant</description>
      <pubDate>Fri, 14 Sep 2001 02:50:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting/m-p/2579335#M31595</guid>
      <dc:creator>Jayant Butte</dc:creator>
      <dc:date>2001-09-14T02:50:02Z</dc:date>
    </item>
  </channel>
</rss>

