[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to overwrite a symbolic link?

From: Eric Blake
Subject: Re: How to overwrite a symbolic link?
Date: Fri, 07 May 2010 09:16:10 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Mnenhy/0.8.2 Thunderbird/3.0.4

On 05/07/2010 09:02 AM, Peng Yu wrote:
> Suppose I need to modify one primary file slightly to do something a
> little bit different. But I still need to do the original job,
> therefore I need to keep it the original M files. I can copy the whole
> directory and then modify one file in the newly copied N files. But
> I'll lose track of which file has been changed later on, which is
> important to me.

Consider using a version control system.  Track the contents of your
directory under your favorite VCS, like git, and then you can use
version control commands to generate the delta for both primary and
secondary files across any state that you committed.

Or, for a one-shot solution, you could use a BSD union mount, where the
difference between the mount overlay and the original directory shows
exactly what was modified.

But overloading bash's > and >> operators is not possible.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]