Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
OT: Bash recursive directory creation

OT: Bash recursive directory creation

2005-05-16       - By kevin korngut

 Back
Reply:     1     2     3     4     5  

Have you tried the -p option for mkdir? It should cause  it to create
the parent directories as needed.


-
Kevin Korngut
Mr. Magoo
JANIMATION INC.
www.janimation.com <http://www.janimation.com/>



Alan Jones said the following on 5/16/2005 4:45 AM:

>Hi all,
>
>My googling isn't helping much so I thought I'd take my chances here.
>
>I want to be able to create a directory in a bash script even if the
>parent doesn't exist - i.e. automatically create all the parent ones.
>So if I try create /doesexist/doesntexist/definitelydoesntexist. It
>will create both doesntexist and definitelydoesntexist within it
>
>cheers,
>
>Alan.
>
>---
>Unsubscribe? Mail Majordomo@(protected) with the following text in body:
>unsubscribe xsi
>  
>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <meta content="text/html;charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1" http-equiv="Content-Type">
 <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Have you tried the -p option for <span>mkdir</span>? It should cause&nbsp;
it to create the parent directories as needed.<br>
<br>
<br>
<div class="moz-signature">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="Word.Document" name="ProgId">
<meta content="MSHTML 6.00.2800.1458" name="GENERATOR">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
 <o:Revision>0</o:Revision>
 <o:TotalTime>0</o:TotalTime>
 <o:Pages>1</o:Pages>
 <o:Words>17</o:Words>
 <o:Characters>98</o:Characters>
 <o:Company>janimation</o:Company>
 <o:Lines>1</o:Lines>
 <o:Paragraphs>1</o:Paragraphs>
 <o:CharactersWithSpaces>114</o:CharactersWithSpaces>
 <o:Version>10.2625</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
 <w:View>Normal</w:View>
 <w:Zoom>0</w:Zoom>
 <w:DoNotShowRevisions/>
 <w:DoNotPrintRevisions/>
 <w:DoNotShowMarkup/>
 <w:DoNotShadeFormData/>
 <w:Compatibility>
  <w:BreakWrappedTables/>
  <w:SnapToGridInCell/>
  <w:WrapTextWithPunct/>
  <w:UseAsianBreakRules/>
 </w:Compatibility>
 <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]-->
<style>@(protected) Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in;
mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times
New Roman"
}
LI.MsoNormal {
  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times
New Roman"
}
DIV.MsoNormal {
  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times
New Roman"
}
A:link {
  COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
  COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
  COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
  COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
P.MsoAutoSig {
  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoAutoSig {
  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoAutoSig {
  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.Section1 {
  page: Section1
}
</style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
  {mso-style-name:"Table Normal";
  mso-tstyle-rowband-size:0;
  mso-tstyle-colband-size:0;
  mso-style-noshow:yes;
  mso-style-parent:"";
  mso-padding-alt:0in 5.4pt 0in 5.4pt;
  mso-para-margin:0in;
  mso-para-margin-bottom:.0001pt;
  mso-pagination:widow-orphan;
  font-size:10.0pt;
  font-family:"Times New Roman";}
</style>
<![endif]-->
<div class="Section1"><span
style="font-size: 10pt; color: navy; font-family: Arial;"
class="MsoAutoSig" align="left"><font color="navy" face="Arial Narrow"
size="2">
<span style="font-size: 10pt; color: navy; font-family: 'Arial Narrow';"
class="MsoAutoSig"><font color="navy" face="Arial Narrow" size="2">-<br>
Kevin Korngut<br>
Mr. Magoo<br>
JANIMATION INC.
<br>
<a href="http://www.janimation.com/">
www.janimation.com
</a><br>
</font></span>
<br>
</font></span></div>
</div>
<br>
<br>
Alan Jones said the following on 5/16/2005 4:45 AM:
<blockquote cite="mid5d43fb2305051602457944dd2e@(protected)"
type="cite">
 <pre wrap="">Hi all,

My googling isn't helping much so I thought I'd take my chances here.

I want to be able to create a directory in a bash script even if the
parent doesn't exist - i.e. automatically create all the parent ones.
So if I try create /doesexist/doesntexist/definitelydoesntexist. It
will create both doesntexist and definitelydoesntexist within it

cheers,

Alan.

---
Unsubscribe? Mail <a class="moz-txt-link-abbreviated" href="mailto:Majordomo
@(protected)">Majordomo@(protected)</a> with the following text in body:
unsubscribe xsi
 </pre>
</blockquote>
</body>
</html>