“Bash Touch finden” Code-Antworten

Bash Touch finden

find . -type f -exec touch {} +
steamboatid

Bash Touch finden

-exec ... \; will run one item after another. 
So if you have three files, the exec line will run three times.

-exec ... {} + is for commands that can take more than one file at a time 
(eg cat, stat, ls). 
The files found by find are chained together like an xargs command. 
This means less forking out and for small operations, can mean a substantial speedup.
steamboatid

Ähnliche Antworten wie “Bash Touch finden”

Fragen ähnlich wie “Bash Touch finden”

Weitere verwandte Antworten zu “Bash Touch finden” auf Shell/Bash

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen