rm except file code example Example: rm except file $ find . -type f -not \(-name '*gz' -or -name '*odt' -or -name '*.jpg' \) -delete