Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
lpi1:find [2016/11/04 08:38] stefan_miethke [exec & friends] |
lpi1:find [2017/09/26 13:08] stefan_miethke [nach Änderungszeit suchen] |
||
---|---|---|---|
Zeile 20: | Zeile 20: | ||
time find doc -type f -executable -exec chmod -x {} \; | time find doc -type f -executable -exec chmod -x {} \; | ||
time find doc -type f -executable -exec chmod -x {} + | time find doc -type f -executable -exec chmod -x {} + | ||
- | find doc -type f -executable -print0 | xargs -0 chmod -x | + | find doc -type f -executable -print0 | xargs -0 -r chmod -x |
# mit Zeitmessung (als shell gruppe) | # mit Zeitmessung (als shell gruppe) | ||
- | time { find doc -type f -executable -print0 | xargs -0 chmod -x; } | + | time { find doc -type f -executable -print0 | xargs -0 -r chmod -x; } |
===== Ausgabe steuern ===== | ===== Ausgabe steuern ===== | ||
Zeile 40: | Zeile 40: | ||
find /tmp -name '*ago' -mtime +1 | find /tmp -name '*ago' -mtime +1 | ||
find /tmp -name '*ago' -mtime +0 | find /tmp -name '*ago' -mtime +0 | ||
- | find / -xdev -newer /tmp vorher | + | find / -xdev -newer /tmp/stamp |