Creating multiple directories simultaneously

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


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

- -- 
- --------+-------------------+-------------------------------
  /"\   |Svein Skogen       | svein at d80.iso100.no
  \ /   |Solberg Østli 9    | PGP Key:  0xE5E76831
   X    |2020 Skedsmokorset | svein at jernhuset.no
  / \   |Norway             | PGP Key:  0xCE96CE13
        |                   | svein at stillbilde.net
 ascii  |                   | PGP Key:  0x58CD33B6
 ribbon |System Admin       | svein-listmail at stillbilde.net
Campaign|stillbilde.net     | PGP Key:  0x22D494A4
        +-------------------+-------------------------------
        |msn messenger:     | Mobile Phone: +47 907 03 575
        |svein at jernhuset.no | RIPE handle:    SS16503-RIPE
- --------+-------------------+-------------------------------
         If you really are in a hurry, mail me at
               svein-mobile at stillbilde.net
 This mailbox goes directly to my cellphone and is checked
        even when I'm not in front of my computer.
- ------------------------------------------------------------
                     Picture Gallery:
          https://gallery.stillbilde.net/v/svein/
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuslzgACgkQODUnwSLUlKT2hwCaAuTsd/NUacDAMYWW6vYFNl2S
qykAnRT8ox6UMTO1OsnCvVfg18CF/Qi7
=nPew
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list