#!/bin/bash file_clean() { if [ -f $1 ]; then #:> $1 cp /dev/null $1 fi } find /var/log -name "*.?" -type f -exec rm -f {} \; find /var/log -name "*.gz" -type f -exec rm -f {} \; find /var/log -name "*.old" -type f -exec rm -f {} \; find /var/log -type f -exec cp /dev/null {} \; find /home -name ".bash_history" -type f -exec cp /dev/null {} \; find /root -name ".bash_history" -type f -exec cp /dev/null {} \;