FILES="$(mktemp files.XXXXXXXXXX)" find -type f -mmin +5 >"$FILES" zip -@ /path/name.zip <"$FILES" xargs -d'\n' -- rm -f -- <"$FILES" rm "$FILES"