I need script to copy on cron basis a list of files. Files selected on name/datetime pattern and to name of file destination must by appended data like ddmmyyy.
It is not problem copy files or directory, but problem to change name of each file according to its data. May be exists some open source solution?
Thanks.
I need script to copy on cron basis a list of files. Files selected
Share
You haven’t provided enough information for me to give you real working code; but you can do something like this:
The above will copy
dated_log.logtodata_log.log.30102011, assuming that the first line ofdated_log.logstarts with30102011.The Bash Reference Manual will hopefully help you adjust the above to suit your needs.