xargs Linux Command
Builds and executes command lines from standard input (useful with pipes).
What does xargs do?
Builds and executes command lines from standard input (useful with pipes).
Syntax
xargs [options] commandPractical example
find . -name '*.log' | xargs rmRelated Search Commands
trTranslates, deletes, or squeezes characters from standard input.
findSearches for files and directories in a directory hierarchy by name, type, size, etc.
cutExtracts specific columns/fields from each line of a file.
grepSearches for patterns (text or regex) inside files and prints matching lines.
uniqReports or filters out repeated lines in a sorted file.
locateQuickly finds files by name using a pre-built database (run updatedb to refresh).