From owner-freebsd-questions@FreeBSD.ORG Fri Mar 26 11:15:06 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38BF91065672 for ; Fri, 26 Mar 2010 11:15:06 +0000 (UTC) (envelope-from svein-listmail@stillbilde.net) Received: from mail.stillbilde.net (unknown [IPv6:2002:51af:3dc3:0:20c:29ff:fece:79f3]) by mx1.freebsd.org (Postfix) with ESMTP id BDD778FC16 for ; Fri, 26 Mar 2010 11:15:05 +0000 (UTC) Received: from [IPv6:2002:51af:3dc3:0:b84a:c6a:44c7:b976] (unknown [IPv6:2002:51af:3dc3:0:b84a:c6a:44c7:b976]) (Authenticated sender: svein-listmail) by mail.stillbilde.net (Familien Skogens mail) with ESMTPSA id 8D7EC23 for ; Fri, 26 Mar 2010 12:15:06 +0100 (CET) Message-ID: <4BAC9738.8080305@stillbilde.net> Date: Fri, 26 Mar 2010 12:15:04 +0100 From: "Svein Skogen (Listmail Account)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.8) Gecko/20100227 Lightning/1.0b1 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20100326071248.4ec4ea5e@scorpio.seibercom.net> In-Reply-To: <20100326071248.4ec4ea5e@scorpio.seibercom.net> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: Creating multiple directories simultaneously X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2010 11:15:06 -0000 -----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-----