Creating multiple directories simultaneously

Svein Skogen (Listmail Account) svein-listmail at
Fri Mar 26 11:15:06 UTC 2010

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 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.

did you try "mkdir -p dirtest/dir1 dirtest/dir2 dirtest/dir3" ?


- -- 
- --------+-------------------+-------------------------------
  /"\   |Svein Skogen       | svein at
  \ /   |Solberg Østli 9    | PGP Key:  0xE5E76831
   X    |2020 Skedsmokorset | svein at
  / \   |Norway             | PGP Key:  0xCE96CE13
        |                   | svein at
 ascii  |                   | PGP Key:  0x58CD33B6
 ribbon |System Admin       | svein-listmail at
Campaign|     | PGP Key:  0x22D494A4
        |msn messenger:     | Mobile Phone: +47 907 03 575
        |svein at | RIPE handle:    SS16503-RIPE
- --------+-------------------+-------------------------------
         If you really are in a hurry, mail me at
               svein-mobile at
 This mailbox goes directly to my cellphone and is checked
        even when I'm not in front of my computer.
- ------------------------------------------------------------
                     Picture Gallery:

- ------------------------------------------------------------
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla -


More information about the freebsd-questions mailing list