<?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 Using for in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143294#M453003</link>
    <description>Hello&lt;BR /&gt;&lt;BR /&gt;I've to provide a list of filenames with a for command, something like that below.&lt;BR /&gt;&lt;BR /&gt;for file in /su01/upload/* ; do &lt;BR /&gt; echo $file; &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This works perfectly but i'd like to have only the filename not &lt;BR /&gt; /su01/upload/filename1&lt;BR /&gt; /su01/upload/filename2&lt;BR /&gt;  ....&lt;BR /&gt;&lt;BR /&gt;How to have only &lt;BR /&gt; filename1&lt;BR /&gt; filename2&lt;BR /&gt; ...&lt;BR /&gt;&lt;BR /&gt;Bests Regards&lt;BR /&gt;Den</description>
    <pubDate>Wed, 26 Nov 2008 15:53:55 GMT</pubDate>
    <dc:creator>Leo The Cat</dc:creator>
    <dc:date>2008-11-26T15:53:55Z</dc:date>
    <item>
      <title>Using for</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143294#M453003</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I've to provide a list of filenames with a for command, something like that below.&lt;BR /&gt;&lt;BR /&gt;for file in /su01/upload/* ; do &lt;BR /&gt; echo $file; &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;This works perfectly but i'd like to have only the filename not &lt;BR /&gt; /su01/upload/filename1&lt;BR /&gt; /su01/upload/filename2&lt;BR /&gt;  ....&lt;BR /&gt;&lt;BR /&gt;How to have only &lt;BR /&gt; filename1&lt;BR /&gt; filename2&lt;BR /&gt; ...&lt;BR /&gt;&lt;BR /&gt;Bests Regards&lt;BR /&gt;Den</description>
      <pubDate>Wed, 26 Nov 2008 15:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143294#M453003</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2008-11-26T15:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using for</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143295#M453004</link>
      <description>Den&lt;BR /&gt;&lt;BR /&gt;Simple:&lt;BR /&gt;&lt;BR /&gt;cd /su01/upload&lt;BR /&gt;for file in *&lt;BR /&gt;do&lt;BR /&gt;echo $file&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 26 Nov 2008 16:00:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143295#M453004</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-11-26T16:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using for</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143296#M453005</link>
      <description>Of course. sorry ! Thanks Pete</description>
      <pubDate>Wed, 26 Nov 2008 16:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143296#M453005</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2008-11-26T16:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using for</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143297#M453006</link>
      <description>Hi Den:&lt;BR /&gt;&lt;BR /&gt;You want the basename of the file.  YOu can get this with:&lt;BR /&gt;&lt;BR /&gt;# file=/home/den/myfile&lt;BR /&gt;# echo $(basename ${file})&lt;BR /&gt;myfile&lt;BR /&gt;&lt;BR /&gt;...or more economically using the shell only:&lt;BR /&gt;&lt;BR /&gt;# echo ${file##*/}&lt;BR /&gt;myfile&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 26 Nov 2008 16:01:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143297#M453006</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-11-26T16:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using for</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143298#M453007</link>
      <description>Pete answer is .... very good !</description>
      <pubDate>Wed, 26 Nov 2008 16:02:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-for/m-p/5143298#M453007</guid>
      <dc:creator>Leo The Cat</dc:creator>
      <dc:date>2008-11-26T16:02:01Z</dc:date>
    </item>
  </channel>
</rss>

