mkdir: recursive alternative?
tdldev at gmail.com
Thu Jul 17 19:21:10 UTC 2008
On Thu, Jul 17, 2008 at 2:56 PM, Robert Dailey <rcdailey at gmail.com> wrote:
> I'm trying to use mkdir to create something like:
> However, 'foo', 'blah', and 'bar' are not guaranteed to exist, so I
> need mkdir to recursively create the directories that are not there.
> Is there a way to do this? I did a lot of searching on google but I
> came up with nothing. Thanks.
if the path is known, something like
for $word in foo blah bar something
if [! -d $word]
(simple bash script)
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users