From owner-freebsd-questions@FreeBSD.ORG Fri Mar 26 17:19:15 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 E8BF6106564A for ; Fri, 26 Mar 2010 17:19:15 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from qmta01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id 947178FC0A for ; Fri, 26 Mar 2010 17:19:15 +0000 (UTC) Received: from omta21.westchester.pa.mail.comcast.net ([76.96.62.72]) by qmta01.westchester.pa.mail.comcast.net with comcast id xpLk1d0011ZXKqc51tKFnA; Fri, 26 Mar 2010 17:19:15 +0000 Received: from comcast.net ([98.203.142.76]) by omta21.westchester.pa.mail.comcast.net with comcast id xtNV1d0031f6R9u3htNVXC; Fri, 26 Mar 2010 17:22:30 +0000 Received: by comcast.net (sSMTP sendmail emulation); Fri, 26 Mar 2010 10:19:12 -0700 Date: Fri, 26 Mar 2010 10:19:12 -0700 From: Charlie Kester To: freebsd-questions@freebsd.org Message-ID: <20100326171912.GE84718@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> <20100326162815.GD84718@comcast.net> <20100326130121.61267cd4@scorpio.seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20100326130121.61267cd4@scorpio.seibercom.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 17:19:16 -0000 On Fri 26 Mar 2010 at 10:01:21 PDT Jerry wrote: >On Fri, 26 Mar 2010 09:28:15 -0700, Charlie Kester > articulated: > >> 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} > >Maybe I am doing this wrong; however, I had to use the "-R" flag with >'cp' to make it work. I also assume you meant "FOO" and not "foo" >unless I am completely misunderstanding this exercise. Sorry, pedagogical error. I didn't intend that to operate on the results of any of the other examples. I probably should have chosen something other than 'foo' in order to avoid that misunderstanding. The point was simply to explore what happens when one of the terms inside the braces is an empty string.