OT: Bash recursive directory creation 2005-05-16 - By Alan Jones
Back 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
|
|