From owner-freebsd-questions@FreeBSD.ORG Fri Mar 26 17:01:27 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 431691065674 for ; Fri, 26 Mar 2010 17:01:27 +0000 (UTC) (envelope-from freebsd.user@seibercom.net) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id B280E8FC31 for ; Fri, 26 Mar 2010 17:01:26 +0000 (UTC) Received: by bwz8 with SMTP id 8so3176882bwz.3 for ; Fri, 26 Mar 2010 10:01:25 -0700 (PDT) Received: by 10.204.48.144 with SMTP id r16mr1432883bkf.176.1269622884810; Fri, 26 Mar 2010 10:01:24 -0700 (PDT) Received: from scorpio.seibercom.net (c-67-189-160-65.hsd1.ny.comcast.net [67.189.160.65]) by mx.google.com with ESMTPS id l1sm9159647bkl.2.2010.03.26.10.01.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Mar 2010 10:01:24 -0700 (PDT) Received: from scorpio.seibercom.net (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: freebsd.user@scorpio.seibercom.net) by scorpio.seibercom.net (Postfix) with ESMTPSA id 0FC5E2280C for ; Fri, 26 Mar 2010 13:01:22 -0400 (EDT) Date: Fri, 26 Mar 2010 13:01:21 -0400 From: Jerry To: freebsd-questions@freebsd.org Message-ID: <20100326130121.61267cd4@scorpio.seibercom.net> In-Reply-To: <20100326162815.GD84718@comcast.net> References: <20100326071248.4ec4ea5e@scorpio.seibercom.net> <20100326113258.GA9957@catflap.slightlystrange.org> <20100326074456.7139c3da@scorpio.seibercom.net> <20100326154907.GC84718@comcast.net> <20100326162815.GD84718@comcast.net> Organization: seibercom.net X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.7; i386-portbld-freebsd7.3) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR Mime-Version: 1.0 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 Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2010 17:01:27 -0000 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. cp -R FOO{,.bak} FOO -> FOO.bak/FOO FOO/foo-1 -> FOO.bak/FOO/foo-1 FOO/foo-2 -> FOO.bak/FOO/foo-2 FOO/foo-3 -> FOO.bak/FOO/foo-3 FOO/bar-1 -> FOO.bak/FOO/bar-1 FOO/bar-2 -> FOO.bak/FOO/bar-2 FOO/bar-3 -> FOO.bak/FOO/bar-3 -- Jerry FreeBSD.user@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __________________________________________________________________ Please remain calm, it's no use both of us being hysterical at the same time.