find . -mtime +30 -exec rm -v '{}' \; >logfile.txt