Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Mar 2010 12:15:04 +0100
From:      "Svein Skogen (Listmail Account)" <svein-listmail@stillbilde.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Creating multiple directories simultaneously
Message-ID:  <4BAC9738.8080305@stillbilde.net>
In-Reply-To: <20100326071248.4ec4ea5e@scorpio.seibercom.net>
References:  <20100326071248.4ec4ea5e@scorpio.seibercom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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@d80.iso100.no
  \ /   |Solberg Østli 9    | PGP Key:  0xE5E76831
   X    |2020 Skedsmokorset | svein@jernhuset.no
  / \   |Norway             | PGP Key:  0xCE96CE13
        |                   | svein@stillbilde.net
 ascii  |                   | PGP Key:  0x58CD33B6
 ribbon |System Admin       | svein-listmail@stillbilde.net
Campaign|stillbilde.net     | PGP Key:  0x22D494A4
        +-------------------+-------------------------------
        |msn messenger:     | Mobile Phone: +47 907 03 575
        |svein@jernhuset.no | RIPE handle:    SS16503-RIPE
- --------+-------------------+-------------------------------
         If you really are in a hurry, mail me at
               svein-mobile@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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BAC9738.8080305>