On Sat, Sep 04, 2010 at 05:18:17AM +0100, nev young wrote:
On 03/09/10 20:38, Chris G wrote:
I want to keep two directories in sync but with a slight difference, I want the 'destination' directory to have lower case names only. I.e. any file in the source directory that has an upper case name (or any upper case characters in its name) I want copied to the destination directory with a lower case name.
I guess I can come up with solutions that need me to write a wrapper script of some sort for rsync but I was wondering if anyone has any ideas for a ready made solution.
This needs to be run as a cron job by the way.
Can't you do this with rename ?
rename 'y/A-Z/a-z/' *
Yes, but that stops rsync working. I want to synchronize a directory full of files with uppercase/mixed names with a directory having the same files with all lowercase names.