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