find /var/lib/connman/ -mtime +7 -type f -delete find /var/lib/connman/ -type d -exec rmdir {} \; 2>&1 \ | grep -v 'Directory not empty' #busybox find has no -empty