<?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: Directory specs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-specs/m-p/2864444#M821237</link>
    <description>harry,&lt;BR /&gt;The problem is that I'm stuck with the / at the end of /exports/archive_logs/.</description>
    <pubDate>Sat, 14 Dec 2002 03:59:07 GMT</pubDate>
    <dc:creator>Allen Karczmarek</dc:creator>
    <dc:date>2002-12-14T03:59:07Z</dc:date>
    <item>
      <title>Directory specs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-specs/m-p/2864442#M821235</link>
      <description>I'm writing an automated online backup script for an Oracle database.  I have a script that dynamically builds the directory lookups for things such as archive logs.  In short my archive log directory is set to something like /exports/archive_logs/&lt;BR /&gt;Later in the script I want to do a test like &lt;BR /&gt;if [ -f $ARC*]; then blah blah blah.&lt;BR /&gt;I need a way to concatenate an asterisk to the end of the directory above to perform the test.  Performing it as written above tests for files in the current directory and not in /exports/archive_logs/.  Conversely, can you tell me how to remove the asterisk from the end of a string as well.  Can this be done with SED?  &lt;BR /&gt;Thanks!!!</description>
      <pubDate>Sat, 14 Dec 2002 03:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-specs/m-p/2864442#M821235</guid>
      <dc:creator>Allen Karczmarek</dc:creator>
      <dc:date>2002-12-14T03:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Directory specs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-specs/m-p/2864443#M821236</link>
      <description>Allen,&lt;BR /&gt;&lt;BR /&gt;how about testing/doing something like this:&lt;BR /&gt;&lt;BR /&gt;for i in `find /exports/archive_logs -type f`&lt;BR /&gt;do&lt;BR /&gt;echo do something with this file $i &lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Sat, 14 Dec 2002 03:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-specs/m-p/2864443#M821236</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-12-14T03:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Directory specs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-specs/m-p/2864444#M821237</link>
      <description>harry,&lt;BR /&gt;The problem is that I'm stuck with the / at the end of /exports/archive_logs/.</description>
      <pubDate>Sat, 14 Dec 2002 03:59:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-specs/m-p/2864444#M821237</guid>
      <dc:creator>Allen Karczmarek</dc:creator>
      <dc:date>2002-12-14T03:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Directory specs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-specs/m-p/2864445#M821238</link>
      <description>hi allen,&lt;BR /&gt;why can't you just&lt;BR /&gt;&lt;BR /&gt;1. "cd" to the desired directory &lt;BR /&gt;&lt;BR /&gt;2. ls -rt1 ./*.log  &amp;gt; backup.list &lt;BR /&gt;&lt;BR /&gt;3. then do any desired operations:&lt;BR /&gt;&lt;BR /&gt;E.g.1:&lt;BR /&gt;--------------------------------&lt;BR /&gt;tar uvf $DAT  `cat backup.list` &lt;BR /&gt;--------------------------------&lt;BR /&gt;&lt;BR /&gt;E.g. 2:&lt;BR /&gt;----------------------------&lt;BR /&gt;for i in `cat backup.list`&lt;BR /&gt;do&lt;BR /&gt;  echo&lt;BR /&gt;  echo  "Renaming $i to:\c "&lt;BR /&gt;  file=`basename $i .log`&lt;BR /&gt;  echo "$file.bak"&lt;BR /&gt;  mv $i $file.bak&lt;BR /&gt;done&lt;BR /&gt;----------------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Sat, 14 Dec 2002 05:20:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-specs/m-p/2864445#M821238</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-12-14T05:20:22Z</dc:date>
    </item>
  </channel>
</rss>

