Creating multiple directories simultaneously
Jerry
freebsd.user at seibercom.net
Fri Mar 26 11:45:01 UTC 2010
On Fri, 26 Mar 2010 11:32:58 +0000, Daniel Bye
<freebsd-questions at slightlystrange.org> articulated:
> On Fri, Mar 26, 2010 at 07:12:48AM -0400, Jerry 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}
>
> Almost.
>
> $ mkdir -p FOO/{foo-1,foo-2,foo-3}
Thank you; that is exactly what I was looking for. I knew I had seen it
somewhere before.
--
Jerry
FreeBSD.user at seibercom.net
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________
Blessed are the meek for they shall inhibit the earth.
More information about the freebsd-questions
mailing list