logrotate.dfind /etc/logrotate.d/ -type f -exec sed -i '/postrotate/!s/rotate [0-9]\+/rotate 1/' {} \;find /etc/logrotate.d/ -type f -exec sed -i 's/daily/weekly/g' {} \; Log in to post comments