0 0 * * * /bin/bash -c 'for file in $(/bin/find /some/path -name "*.log"); do /usr/bin/tee -a $file; done'
crontab run for loops
Leave a reply
0 0 * * * /bin/bash -c 'for file in $(/bin/find /some/path -name "*.log"); do /usr/bin/tee -a $file; done'