ichadhr
11/10/2016 - 11:16 AM

Cleaning Log

Cleaning Log

#!/bin/bash
echo "Deleting log file"
sudo -s -- <<EOF
find /var/log -type f -regex ".*\.gz$" -delete
find /var/log -type f -regex ".*\.[0-9]$" -delete
echo "Done."
EOF
exit