<?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: for loop in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/for-loop/m-p/4883445#M704319</link>
    <description>How about:&lt;BR /&gt;&lt;BR /&gt;integer last=`cat $source_dir/vg_nums`&lt;BR /&gt;integer i=1&lt;BR /&gt;while [ $i -le $last ]&lt;BR /&gt;do&lt;BR /&gt;    echo $i&lt;BR /&gt;     i=$i+1&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
    <pubDate>Tue, 01 Feb 2005 14:21:48 GMT</pubDate>
    <dc:creator>Biswajit Tripathy</dc:creator>
    <dc:date>2005-02-01T14:21:48Z</dc:date>
    <item>
      <title>for loop</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/for-loop/m-p/4883444#M704318</link>
      <description>for i in 1..`cat $source_dir/vg_nums`&lt;BR /&gt;do&lt;BR /&gt;  echo $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;If my vg_nums file has 5 in it, how would I get it to read 1 2 3 4 5 instead of having to put it manually in the for loop. My vg_nums file will change at times.</description>
      <pubDate>Tue, 01 Feb 2005 14:14:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/for-loop/m-p/4883444#M704318</guid>
      <dc:creator>Donald C Nelson</dc:creator>
      <dc:date>2005-02-01T14:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: for loop</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/for-loop/m-p/4883445#M704319</link>
      <description>How about:&lt;BR /&gt;&lt;BR /&gt;integer last=`cat $source_dir/vg_nums`&lt;BR /&gt;integer i=1&lt;BR /&gt;while [ $i -le $last ]&lt;BR /&gt;do&lt;BR /&gt;    echo $i&lt;BR /&gt;     i=$i+1&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;- Biswajit&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Feb 2005 14:21:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/for-loop/m-p/4883445#M704319</guid>
      <dc:creator>Biswajit Tripathy</dc:creator>
      <dc:date>2005-02-01T14:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: for loop</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/for-loop/m-p/4883446#M704320</link>
      <description>How about using a while loop instead.  Something like:&lt;BR /&gt;&lt;BR /&gt;while i &amp;lt;= $(cat $source_dir/vg_nums)&lt;BR /&gt;do&lt;BR /&gt;echo $i&lt;BR /&gt;$i++&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm quite sure that syntax won't work, but you get the idea.</description>
      <pubDate>Tue, 01 Feb 2005 14:22:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/for-loop/m-p/4883446#M704320</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-02-01T14:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: for loop</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/for-loop/m-p/4883447#M704321</link>
      <description>Biswajit Tripathy script solved my problem.</description>
      <pubDate>Tue, 01 Feb 2005 14:26:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/for-loop/m-p/4883447#M704321</guid>
      <dc:creator>Donald C Nelson</dc:creator>
      <dc:date>2005-02-01T14:26:08Z</dc:date>
    </item>
  </channel>
</rss>

