💾 Archived View for freeshell.de › tldr › xargs.gmi captured on 2024-05-10 at 12:35:02. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

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 pieces on spaces, tabs, newlines and end-of-file.

More information.

{arguments_source} | xargs {command}
{arguments_source} | xargs sh -c "{command1} && {command2} | {command3}"
find . -name {'*.backup'} -print0 | xargs -0 rm -v
{arguments_source} | xargs -I _ {command} _ {optional_extra_arguments}
{arguments_source} | xargs -P {max-procs} {command}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY