Creating multiple directories simultaneously

Jaroslaw Miszczak jarek at
Fri Mar 26 11:56:10 UTC 2010


maybe you need

  mkdirhier dirtest/dir1 dirtest/dir2 dirtest/dir3


Jarek Miszczak

On Fri, Mar 26, 2010 at 12:12, Jerry <freebsd.user at> 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 at
> 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.
>        Charles Schulz, "Things I've Had to Learn Over and
>                   Over and Over"
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list