Date: Fri, 26 Mar 2010 11:22:06 +0000 (UTC) From: Nuno Marques <nmarques@di.fc.ul.pt> To: freebsd-questions@freebsd.org Subject: Re: Creating multiple directories simultaneously Message-ID: <hoi5cu$9og$1@dough.gmane.org> References: <20100326071248.4ec4ea5e@scorpio.seibercom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 26 Mar 2010 07:12:48 -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} > 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. try mkdir -p foo{,-1,-2,-3}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?hoi5cu$9og$1>