Creating multiple directories simultaneously
Daniel Bye
freebsd-questions at slightlystrange.org
Fri Mar 26 11:33:00 UTC 2010
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}
--
Daniel Bye
_
ASCII ribbon campaign ( )
- against HTML, vCards and X
- proprietary attachments in e-mail / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100326/4fb0beca/attachment.pgp
More information about the freebsd-questions
mailing list