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 ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature