OT: Bash recursive directory creation 2005-05-16 - By Alan Jones
Back yeah - for some reason my stupid brain didn't even think of maning for something as simple as mkdir - goes to show even the basics have options ;-)
Cheers,
Alan.
On 5/16/05, kim aldis <kim@(protected)> wrote: > Can you get to the manual pages on Linux, Alan? They're sometimes more > useful than google: > > man mkdir. > > > > -- --Original Message-- -- > > From: owner-xsi@(protected) > > [mailto:owner-xsi@(protected)] On Behalf Of Alan Jones > > Sent: 16 May 2005 10:53 > > To: xsi@(protected) > > Subject: Re: OT: Bash recursive directory creation > > > > I got rid of recursive from my google and found the answer -p > > > > mkdir -p /the/impossible/dir > > > > Cheers, > > > > Alan. > > > > On 5/16/05, Alan Jones <skyphyr@(protected)> wrote: > > > 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
|
|