From owner-freebsd-questions@FreeBSD.ORG Fri Mar 26 16:28:18 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 89CA71065674 for ; Fri, 26 Mar 2010 16:28:18 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from qmta03.emeryville.ca.mail.comcast.net (qmta03.emeryville.ca.mail.comcast.net [76.96.30.32]) by mx1.freebsd.org (Postfix) with ESMTP id 6FDAF8FC22 for ; Fri, 26 Mar 2010 16:28:18 +0000 (UTC) Received: from omta12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by qmta03.emeryville.ca.mail.comcast.net with comcast id xoZg1d0060x6nqcA3sUK4h; Fri, 26 Mar 2010 16:28:19 +0000 Received: from comcast.net ([98.203.142.76]) by omta12.emeryville.ca.mail.comcast.net with comcast id xsUH1d00A1f6R9u8YsUHxh; Fri, 26 Mar 2010 16:28:18 +0000 Received: by comcast.net (sSMTP sendmail emulation); Fri, 26 Mar 2010 09:28:15 -0700 Date: Fri, 26 Mar 2010 09:28:15 -0700 From: Charlie Kester To: freebsd-questions@freebsd.org Message-ID: <20100326162815.GD84718@comcast.net> Mail-Followup-To: freebsd-questions@freebsd.org References: <20100326071248.4ec4ea5e@scorpio.seibercom.net> <20100326113258.GA9957@catflap.slightlystrange.org> <20100326074456.7139c3da@scorpio.seibercom.net> <20100326154907.GC84718@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20100326154907.GC84718@comcast.net> X-Mailer: Mutt 1.5.20 X-Composer: VIM 7.2 User-Agent: Mutt/1.5.20 (2009-06-14) 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 16:28:18 -0000 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 how the following work: $ mkdir -p FOO/{foo-,bar-}{1,2,3} $ cp foo{,.bak} Others might have some even more complicated examples worth exploring. (It sucks, btw, that most of what Google finds pertaining to brace expansion is about bash, when the feature was actually introduced by csh.)