xargs

Execute a command with piped arguments coming from another command,…

xargs

Execute a command with piped arguments coming from another command, a file, etc. The input is treated as a single block of text and split into separate arguments on spaces, tabs, newlines and end-of-file.

{{arguments_source}} | xargs {{command}}

{{find . -name '*.backup'}} | xargs {{rm -v}}

{{arguments_source}} | tr '\n' '\0' | xargs -0 {{command}}

{{arguments_source}} | xargs -I _ {{command}} _ {{optional_extra_arguments}}

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← xar xcaddy →