From owner-freebsd-questions@FreeBSD.ORG Thu Sep 9 20:35:07 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 4458710656DC for ; Thu, 9 Sep 2010 20:35:07 +0000 (UTC) (envelope-from merlyn@stonehenge.com) Received: from red.stonehenge.com (red.stonehenge.com [IPv6:2607:f2f8:3080::]) by mx1.freebsd.org (Postfix) with ESMTP id 2C9658FC13 for ; Thu, 9 Sep 2010 20:35:07 +0000 (UTC) Received: by red.stonehenge.com (Postfix, from userid 1001) id EB5011103; Thu, 9 Sep 2010 13:35:06 -0700 (PDT) From: merlyn@stonehenge.com (Randal L. Schwartz) To: Aryeh Friedman References: x-mayan-date: Long count = 12.19.17.12.6; tzolkin = 2 Cimi; haab = 19 Mol Date: Thu, 09 Sep 2010 13:35:06 -0700 In-Reply-To: (Aryeh Friedman's message of "Thu, 9 Sep 2010 13:24:50 -0400") Message-ID: <86bp86mz9h.fsf@red.stonehenge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD Mailing List Subject: Re: how to recursively symlink every file in a dir 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: Thu, 09 Sep 2010 20:35:07 -0000 >>>>> "Aryeh" == Aryeh Friedman writes: Aryeh> I want to make it so every file is a seperate symlink in dir2 if and Aryeh> only if it is a regular file (not a dir) in dir1... the reason is if Aryeh> the file is unchanged then use symlink but I can rm the symlink and Aryeh> replace it with a non-symlink: Are you committed to symlinks? I think null-mounts would do what you're trying to do... as in, as long as you're reading, you're reading from the old stuff, but if you ever write something new, all the right bits get created in the new dir. But I'm new to null-mounts, so I could be wrong. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion