I need a scripting in MAC for this :
I have a folder that contain several files, for example Folder A with 3 files : Susan.log, Mitch.log, Bryan.log. OS : Mac
I want to copy those 3 files to folder B, but I need when copied the file name will append date time with format : yyyymmdd. With the yyyymmdd is fetched from the modified date of those 3 files.
File in Source Folder Modified Date The result of copy in Folder B
================= ============== ==========================
Susan.log 23-March-2010 Susan-20100323.log
Mitch.log 18-Dec-2009 Mitch-20091218.log
Bryan.log 7-Dec-2008 Bryan-20081207.log
Please give me the scripting for these results : copy files from folder A to Folder B, with the files name including the modified date of the corresponding files.
I have asked the similar question for windows OS in here :
And I already get the solutions in Windows, and I need it for Mac now. Maybe you could see that link to get some hints. thank you.