From owner-freebsd-questions@FreeBSD.ORG Thu Sep 9 17:50:32 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 388E210656A8 for ; Thu, 9 Sep 2010 17:50:32 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from blue.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) by mx1.freebsd.org (Postfix) with ESMTP id A21028FC12 for ; Thu, 9 Sep 2010 17:50:31 +0000 (UTC) Received: from fileserver.home.qeng-ho.org (localhost [127.0.0.1]) by fileserver.home.qeng-ho.org (8.14.3/8.14.3) with ESMTP id o89HoU6M069624; Thu, 9 Sep 2010 18:50:30 +0100 (BST) (envelope-from freebsd@qeng-ho.org) Message-ID: <4C891E66.3010405@qeng-ho.org> Date: Thu, 09 Sep 2010 18:50:30 +0100 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.11) Gecko/20100727 Thunderbird/3.0.6 MIME-Version: 1.0 To: Aryeh Friedman References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 17:50:32 -0000 On 09/09/10 18:24, Aryeh Friedman wrote: > I want to make it so every file is a seperate symlink in dir2 if and > only if it is a regular file (not a dir) in dir1... the reason is if > the file is unchanged then use symlink but I can rm the symlink and > replace it with a non-symlink: cpio -pdl