  | | | Bash recursive directory creation | Bash recursive directory creation 2005-05-16 - By Alan Jones
Back Thanks Kim - unfortunately I'm stuck with bash as it's to create an ebuild for gentoo.
Cheers,
Alan.
On 5/16/05, kim aldis <kim@(protected)> wrote: > Check out the manual pages for mkdir. There's a cl switch that'll force the > creation of subdirs. > > You might also want to check out some of the other shells. Some people > prefer bash but I've always found tcsh more useful. > > > -- --Original Message-- -- > > From: owner-xsi@(protected) > > [mailto:owner-xsi@(protected)] On Behalf Of Alan Jones > > Sent: 16 May 2005 10:45 > > To: xsi@(protected) > > Subject: OT: Bash recursive directory creation > > > > 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 > > > > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |