I want to move files from Downloads, Documents, Pictures, Music, et al to shared locations. This is for various reasons, including because I want to keep media in a central, shared place.
I want to avoid clobbering existing files with the same name, but if the files have the same size, then I'm usually happy to keep the newer file. Also nice to move files with duplicate names but different sizes, but append something appropriate to the new file.
Anyway, I have a perl script, 'ckmv', which does much of what I want, but I'm wondering whether there is a more idiomatic way in shell script? Do you ever have this need, what do you do?
I just found this post, (how to move files from one folder to other with appending time stamp to the name?), which explains how to forge a new name by appending the file creation date. That makes sense, I may add that.
Thankyou!