$ find a/b -maxdepth 1 '!' -name '*.zip' -type f -exec rm '{}' ';' #### unlink `find a/b -maxdepth 1 '!' -name '*.zip' -type f`; #### unlink split /\x00/, `find a/b -maxdepth 1 '!' -name '*.zip' -type f -print0`;