<?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 script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2814728#M827668</link>
    <description>or you could do something like this:&lt;BR /&gt;print "$1" | tr ':' '\n' |&lt;BR /&gt;while read tape&lt;BR /&gt;do&lt;BR /&gt;  echo $tape&lt;BR /&gt;done</description>
    <pubDate>Fri, 27 Sep 2002 06:20:38 GMT</pubDate>
    <dc:creator>curt larson_1</dc:creator>
    <dc:date>2002-09-27T06:20:38Z</dc:date>
    <item>
      <title>shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2814726#M827666</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am writing a shell script that allow to pass argument&lt;BR /&gt;&lt;BR /&gt;let said&lt;BR /&gt;&lt;BR /&gt;myscript tape1:tape2:tape3 "hello world"&lt;BR /&gt;&lt;BR /&gt;inside the script&lt;BR /&gt;$1=tape1:tape2:tape3&lt;BR /&gt;$2=hello world&lt;BR /&gt;&lt;BR /&gt;I have a for loop that support to loop through tape1,tape2 and tape3.  I will use IFS=: as the delimiter.&lt;BR /&gt;&lt;BR /&gt;my question is in my for loop how could I loop through tape1:tape2:tape3&lt;BR /&gt;&lt;BR /&gt;for i in $1&lt;BR /&gt;do&lt;BR /&gt;   echo "$i"&lt;BR /&gt;done</description>
      <pubDate>Fri, 27 Sep 2002 06:02:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2814726#M827666</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2002-09-27T06:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2814727#M827667</link>
      <description>the easiest way is not to include the colons (:) in the passed argument, i.e. "tape1 tape2 tape3" instead of tape1:tape2:tape3</description>
      <pubDate>Fri, 27 Sep 2002 06:16:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2814727#M827667</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2002-09-27T06:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2814728#M827668</link>
      <description>or you could do something like this:&lt;BR /&gt;print "$1" | tr ':' '\n' |&lt;BR /&gt;while read tape&lt;BR /&gt;do&lt;BR /&gt;  echo $tape&lt;BR /&gt;done</description>
      <pubDate>Fri, 27 Sep 2002 06:20:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2814728#M827668</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2002-09-27T06:20:38Z</dc:date>
    </item>
  </channel>
</rss>

