<?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 redirection question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-redirection-question/m-p/3241773#M714618</link>
    <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;  i=`ls *.x *.y *.z 2&amp;gt;/dev/null'&lt;BR /&gt;  for j in $i&lt;BR /&gt;  do&lt;BR /&gt; &lt;BR /&gt;  This should work&lt;BR /&gt;&lt;BR /&gt;Sundar</description>
    <pubDate>Tue, 06 Apr 2004 18:12:10 GMT</pubDate>
    <dc:creator>Sundar_7</dc:creator>
    <dc:date>2004-04-06T18:12:10Z</dc:date>
    <item>
      <title>Shell redirection question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-redirection-question/m-p/3241772#M714617</link>
      <description>In a script I've got something like:&lt;BR /&gt;  i=`ls *.x *.y *.z`&lt;BR /&gt;  for j in $i&lt;BR /&gt;  do&lt;BR /&gt;&lt;BR /&gt;The issue I'm facing at the moment is if one of the file types, eg *.x, doesn't exist I get the message "*.x not found".  I've tried redirecting this to /dev/null but I still can't get rid of the message.  Any suggestions?&lt;BR /&gt;&lt;BR /&gt;Many Thanks,&lt;BR /&gt;Scott Taylor.</description>
      <pubDate>Tue, 06 Apr 2004 18:08:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-redirection-question/m-p/3241772#M714617</guid>
      <dc:creator>Unix Administrator_9</dc:creator>
      <dc:date>2004-04-06T18:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Shell redirection question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-redirection-question/m-p/3241773#M714618</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;  i=`ls *.x *.y *.z 2&amp;gt;/dev/null'&lt;BR /&gt;  for j in $i&lt;BR /&gt;  do&lt;BR /&gt; &lt;BR /&gt;  This should work&lt;BR /&gt;&lt;BR /&gt;Sundar</description>
      <pubDate>Tue, 06 Apr 2004 18:12:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-redirection-question/m-p/3241773#M714618</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-04-06T18:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shell redirection question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-redirection-question/m-p/3241774#M714619</link>
      <description>Thx - I had the the last back quote in the wrong location.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;SJT</description>
      <pubDate>Tue, 06 Apr 2004 18:18:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-redirection-question/m-p/3241774#M714619</guid>
      <dc:creator>Unix Administrator_9</dc:creator>
      <dc:date>2004-04-06T18:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Shell redirection question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-redirection-question/m-p/3241775#M714620</link>
      <description>A simpler way to write this:&lt;BR /&gt; &lt;BR /&gt;for j in $(ls *.x *.y *.z 2&amp;gt;/dev/null)&lt;BR /&gt;do&lt;BR /&gt; ...&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;The use of backticks (grave accent, reverse apostrophe, etc) is deprecated and very easy to misinterpret. $(...) can also be nested if needed.</description>
      <pubDate>Tue, 06 Apr 2004 18:22:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-redirection-question/m-p/3241775#M714620</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-04-06T18:22:06Z</dc:date>
    </item>
  </channel>
</rss>

