<?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: mkdir -p in a for loop in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/mkdir-p-in-a-for-loop/m-p/5055533#M93751</link>
    <description>Change your for statement to:&lt;BR /&gt;&lt;BR /&gt;for db in dev masdev&lt;BR /&gt;&lt;BR /&gt;and it should work as you expect.</description>
    <pubDate>Thu, 28 Jun 2007 11:42:05 GMT</pubDate>
    <dc:creator>Keith Johnson</dc:creator>
    <dc:date>2007-06-28T11:42:05Z</dc:date>
    <item>
      <title>mkdir -p in a for loop</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mkdir-p-in-a-for-loop/m-p/5055532#M93750</link>
      <description>I am getting some unexpected results when running the following:&lt;BR /&gt;&lt;BR /&gt;for db in 'dev masdev'&lt;BR /&gt;do&lt;BR /&gt;  mkdir -p -m 775 $ORACLE_BASE/admin/$db/scripts&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Instead of getting 2 directory structures like:&lt;BR /&gt;drwxrwxr-x ... dev/scripts&lt;BR /&gt;drwxrwxr-x ... masdev/scripts&lt;BR /&gt;&lt;BR /&gt;I am getting this:&lt;BR /&gt;&lt;BR /&gt;drwxrwxr-x ... dev (nothing under dev)&lt;BR /&gt;drwxr-xr-x ... masdev&lt;BR /&gt;drwxrwxr-x ... masdev/scripts&lt;BR /&gt;&lt;BR /&gt;I'm confused!  ;)&lt;BR /&gt;&lt;BR /&gt;set -x shows &lt;BR /&gt;+ mkdir -p -m 775 /u01/app/oracle/admin/dev masdev/scripts</description>
      <pubDate>Thu, 28 Jun 2007 11:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mkdir-p-in-a-for-loop/m-p/5055532#M93750</guid>
      <dc:creator>Steve Givens</dc:creator>
      <dc:date>2007-06-28T11:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: mkdir -p in a for loop</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mkdir-p-in-a-for-loop/m-p/5055533#M93751</link>
      <description>Change your for statement to:&lt;BR /&gt;&lt;BR /&gt;for db in dev masdev&lt;BR /&gt;&lt;BR /&gt;and it should work as you expect.</description>
      <pubDate>Thu, 28 Jun 2007 11:42:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mkdir-p-in-a-for-loop/m-p/5055533#M93751</guid>
      <dc:creator>Keith Johnson</dc:creator>
      <dc:date>2007-06-28T11:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: mkdir -p in a for loop</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mkdir-p-in-a-for-loop/m-p/5055534#M93752</link>
      <description>doh!&lt;BR /&gt;&lt;BR /&gt;That did it thanks.  I thought I would need quotes around the dbnames.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 28 Jun 2007 11:54:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mkdir-p-in-a-for-loop/m-p/5055534#M93752</guid>
      <dc:creator>Steve Givens</dc:creator>
      <dc:date>2007-06-28T11:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: mkdir -p in a for loop</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mkdir-p-in-a-for-loop/m-p/5055535#M93753</link>
      <description>resolved</description>
      <pubDate>Thu, 28 Jun 2007 11:55:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mkdir-p-in-a-for-loop/m-p/5055535#M93753</guid>
      <dc:creator>Steve Givens</dc:creator>
      <dc:date>2007-06-28T11:55:29Z</dc:date>
    </item>
  </channel>
</rss>

