Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Mar 2010 12:24:31 +0100
From:      Jaroslaw Miszczak <jarek@miszczak.eu>
To:        freebsd-questions@freebsd.org
Subject:   Re: Creating multiple directories simultaneously
Message-ID:  <9a4b16bb1003260424t2a2e1d77h5b73b10c029355fb@mail.gmail.com>
In-Reply-To: <20100326071248.4ec4ea5e@scorpio.seibercom.net>
References:  <20100326071248.4ec4ea5e@scorpio.seibercom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

maybe you need

  mkdirhier dirtest/dir1 dirtest/dir2 dirtest/dir3

Cheers,

Jarek Miszczak

On Fri, Mar 26, 2010 at 12:12, Jerry <freebsd.user@seibercom.net> wrote:
> I could have sworn that I saw a method of creating several directories,
> actually a parent direct and several sub-directories simultaneously;
> however, I cannot fine the documentation any longer.
>
> Assume I want to create a directory: FOO with three directories under
> it, foo-1, foo-2 and foo-3. I tried: mkdir -p foo {foo-1, foo-2, foo-3}
> and several other variants and they all failed. I could easily write a
> simple script to accomplish it; however, I thought I could do it
> directly from the command line.
>
> --
> Jerry
> FreeBSD.user@seibercom.net
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the Reply-To header.
> __________________________________________________________________
>
> The only real way to look younger is not to be born so soon.
>
>
> =A0 =A0 =A0 =A0Charles Schulz, "Things I've Had to Learn Over and
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Over and Over"
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9a4b16bb1003260424t2a2e1d77h5b73b10c029355fb>