Re: Creating multiple directories simultaneously

2010-03-26 Thread Svein Skogen (Listmail Account)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26.03.2010 12:12, 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

Re: Creating multiple directories simultaneously

2010-03-26 Thread Nuno Marques
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

Re: Creating multiple directories simultaneously

2010-03-26 Thread Daniel Bye
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

Re: Creating multiple directories simultaneously

2010-03-26 Thread Jerry
On Fri, 26 Mar 2010 12:15:04 +0100, Svein Skogen (Listmail Account) svein-listm...@stillbilde.net articulated: did you try mkdir -p dirtest/dir1 dirtest/dir2 dirtest/dir3 ? Yes, and of course it works. I just thought that I had once seen a faster method of accomplishing the same feat. Perhaps I

Re: Creating multiple directories simultaneously

2010-03-26 Thread Jerry
On Fri, 26 Mar 2010 11:32:58 +, Daniel Bye freebsd-questi...@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

Re: Creating multiple directories simultaneously

2010-03-26 Thread Jaroslaw Miszczak
Hi, maybe you need mkdirhier dirtest/dir1 dirtest/dir2 dirtest/dir3 Cheers, Jarek Miszczak On Fri, Mar 26, 2010 at 12:12, Jerry freebsd.u...@seibercom.net wrote: I could have sworn that I saw a method of creating several directories, actually a parent direct and several sub-directories

Re: Creating multiple directories simultaneously

2010-03-26 Thread Charlie Kester
On Fri 26 Mar 2010 at 04:44:56 PDT Jerry wrote: On Fri, 26 Mar 2010 11:32:58 +, Daniel Bye freebsd-questi...@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

Re: Creating multiple directories simultaneously

2010-03-26 Thread Charlie Kester
On Fri 26 Mar 2010 at 08:49:08 PDT Charlie Kester wrote: Understand how this works, however, so you won't need to look it up again, but can apply it yourself in whatever variation is needed. It's called brace expansion. For extra credit, and to test your understanding, see if you can explain

Re: Creating multiple directories simultaneously

2010-03-26 Thread Jerry
On Fri, 26 Mar 2010 09:28:15 -0700, Charlie Kester corky1...@comcast.net articulated: For extra credit, and to test your understanding, see if you can explain how the following work: $ mkdir -p FOO/{foo-,bar-}{1,2,3} $ cp foo{,.bak} Maybe I am doing this wrong; however, I had to use the

Re: Creating multiple directories simultaneously

2010-03-26 Thread Charlie Kester
On Fri 26 Mar 2010 at 10:01:21 PDT Jerry wrote: On Fri, 26 Mar 2010 09:28:15 -0700, Charlie Kester corky1...@comcast.net articulated: For extra credit, and to test your understanding, see if you can explain how the following work: $ mkdir -p FOO/{foo-,bar-}{1,2,3} $ cp foo{,.bak} Maybe I