find -type f -mmin +5 -print | zip /path/name.zip -@
find -type f -mmin +5 -exec zip /path/name.zip '{}' ';' -delete
1 2 3 4 5
FILES="$(mktemp files.XXXXXXXXXX)" find -type f -mmin +5 >"$FILES" zip -@ /path/name.zip <"$FILES" xargs -d'\n' -- rm -f -- <"$FILES" rm "$FILES"
1
2
find -type f -mmin +5 -print0 | \
xargs -0 -I {} sh -c 'zip /path/name.zip {}; rm -f {}'
1 2
find -type f -mmin +5 -print0 | \ xargs -0 -- sh -c 'zip /path/name.zip -- "$@"; rm -f -- "$@"' --
1 2
find -type f -mmin +5 -print0 | \ xargs -0 -- sh -c 'zip /path/name.zip -- "$@" && rm -f -- "$@"' --
1
2
3
4
5
6
7
8
9
10
# find -type f -mmin +5 -print0 | \
xargs -0 -- sh -c 'zip /path/name.zip -- "$@" && rm -f -- "$@"' --
zip error: Invalid command arguments (no such option: -)
zip error: Invalid command arguments (no such option: -)
zip error: Invalid command arguments (no such option: -)
zip error: Invalid command arguments (no such option: -)
1 2 3
open(GLOG, '>>', $log) || die "Kann $log nicht oeffnen: $!"; open(STDOUT, '>&GLOG'); open(STDERR, '>&GLOG');