Creating multiple directories simultaneously

Jerry freebsd.user at
Fri Mar 26 11:12:53 UTC 2010

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.

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"

More information about the freebsd-questions mailing list