xargs
CautionBuild & run command lines
... | xargs <command>
Turns stdin into arguments. The workhorse for bulk ops with find. -I{} places args; -P parallelizes.
Examples
find . -name '*.log' -mtime +30 | xargs rm -fBulk-delete old logs
Syntax
xargs [-I{}] [-P n] <command>
Before you run it
Combined with rm it bulk-deletes — verify targets first.
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store