Skip to content

xargs: support -E/--eof flag #592

Closed

Description

@brian-pane

The gnu version of xargs supports a flag -e/-E/--eof to specify a string that, when reached in the input, will cause xargs to stop processing the input. For example,

echo "12 34 56 78 90" | xargs -n1 -E 56 echo
12
34

If there is interest in supporting this feature in the findutils implementation of xargs, I have a patch I'm happy to contribute.

echo "12 34 56 78 90" | ./target/debug/xargs -n1 -E 56 echo
12
34

Activity

  1. sylvestre commented on Nov 11, 2025

    @sylvestre
    SponsorContributor

    Sure, thanks!

  2. linked a pull request that will close this issuexargs: add support for -E option #593on Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions