<?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: Please help! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2750203#M834643</link>
    <description>&lt;BR /&gt;This should get you started:&lt;BR /&gt;&lt;BR /&gt;FILENAME=myfile&lt;BR /&gt;&lt;BR /&gt;cat ${FILENAME} | while read X&lt;BR /&gt;  do&lt;BR /&gt;    if [ "${X}" = "Me" ]&lt;BR /&gt;      then&lt;BR /&gt;        echo "Yes"&lt;BR /&gt;      else&lt;BR /&gt;        echo "${X}"&lt;BR /&gt;      fi&lt;BR /&gt;  done&lt;BR /&gt;</description>
    <pubDate>Sat, 22 Jun 2002 14:07:09 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-06-22T14:07:09Z</dc:date>
    <item>
      <title>Please help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2750202#M834642</link>
      <description>Hi guys!&lt;BR /&gt;This is probably the easiest question you have been asked...but I am just starting out in UNIX shell scripting and need your help with while loop.&lt;BR /&gt;What I want to do is say,&lt;BR /&gt;while not end of file filename&lt;BR /&gt;   if .......&lt;BR /&gt;     then ......&lt;BR /&gt;   elif ......&lt;BR /&gt;     then ......&lt;BR /&gt;   fi&lt;BR /&gt;end&lt;BR /&gt;Can you please tell me the exact syntax of how to accomplish the above task? I am having rough time with this. Thank you so much guys!</description>
      <pubDate>Sat, 22 Jun 2002 13:35:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2750202#M834642</guid>
      <dc:creator>Vande Matram</dc:creator>
      <dc:date>2002-06-22T13:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Please help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2750203#M834643</link>
      <description>&lt;BR /&gt;This should get you started:&lt;BR /&gt;&lt;BR /&gt;FILENAME=myfile&lt;BR /&gt;&lt;BR /&gt;cat ${FILENAME} | while read X&lt;BR /&gt;  do&lt;BR /&gt;    if [ "${X}" = "Me" ]&lt;BR /&gt;      then&lt;BR /&gt;        echo "Yes"&lt;BR /&gt;      else&lt;BR /&gt;        echo "${X}"&lt;BR /&gt;      fi&lt;BR /&gt;  done&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Jun 2002 14:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2750203#M834643</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-06-22T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Please help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2750204#M834644</link>
      <description>:-) aaaah....finally! Thank you so much! You've been a great help! I will try your approach.</description>
      <pubDate>Sat, 22 Jun 2002 14:10:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2750204#M834644</guid>
      <dc:creator>Vande Matram</dc:creator>
      <dc:date>2002-06-22T14:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Please help!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2750205#M834645</link>
      <description>here is another way (that looks weird).  &lt;BR /&gt;&lt;BR /&gt;exec 3&lt;INFILE.TXT&gt;&lt;/INFILE.TXT&gt;while read X  0&amp;lt;3&amp;amp;&lt;BR /&gt;  do&lt;BR /&gt;  echo $X&lt;BR /&gt;done&lt;BR /&gt;3&amp;lt;&amp;amp;-&lt;BR /&gt;&lt;BR /&gt;The X variable here is a line from the file, instead of a word.&lt;BR /&gt;&lt;BR /&gt;So to be each line, each word.....&lt;BR /&gt;exec 3&lt;INFILE.TXT&gt;&lt;/INFILE.TXT&gt;while read XLINE  0&amp;lt;3&amp;amp;&lt;BR /&gt;  do&lt;BR /&gt;  echo "line $XLINE"&lt;BR /&gt;  for XWORD in $XLINE&lt;BR /&gt;     do&lt;BR /&gt;     echo "word $XWORD"&lt;BR /&gt;  done&lt;BR /&gt;done&lt;BR /&gt;3&amp;lt;&amp;amp;-&lt;BR /&gt;&lt;BR /&gt;hope it helps.      Steve ^_^&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Jun 2002 11:11:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2750205#M834645</guid>
      <dc:creator>Steve Post</dc:creator>
      <dc:date>2002-06-24T11:11:08Z</dc:date>
    </item>
  </channel>
</rss>

