Mailing List Archive


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

Re: [tlug] Seeking recommendations for file consolidation



On Thu, 2006-08-17 at 20:01 +0900, Dave M G wrote:
> Once all the data is in one place, I hoped to find a way I can weed out 
> duplicates and be left with one set of just the most recent versions of 
> unique files.

try the following

mkdir .merge_dir
for backup_dir in *;
    cp -ur ${backup_dir}/* .merge_dir 2>/dev/null
done
mv .merge_dir newest

in the parent directory of the backup folders.  It won't remove
duplicates where the file has been renamed.

Edward



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links