<commit_before># 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.

- Main usage pattern:

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

- Delete all files with a `.backup` extension:

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

- Convert newlines in the input into NUL (`\0`) characters, and split on those only (useful if the input to xargs contains spaces):

`{{arguments_source}} | tr '\n' '\0' | xargs -0 {{command}}`<commit_msg>xargs: remove unnecessary braces (#1780)<commit_after># 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.

- Main usage pattern:

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

- Delete all files with a `.backup` extension:

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

- Convert newlines in the input into NUL (`\0`) characters, and split on those only (useful if the input to xargs contains spaces):

`{{arguments_source}} | tr '\n' '\0' | xargs -0 {{command}}`
{'fraction_non_alphanumeric': 0.12855980471928397, 'fraction_numerical': 0.008136696501220505, 'mean_word_length': 4.189873417721519, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4473184', 'n_tokens_mistral': 378, 'n_tokens_neox': 369, 'n_words': 171}