Created
March 20, 2018 16:45
-
-
Save tracertea/3d70a07b1ec5b1248fc82743425d5292 to your computer and use it in GitHub Desktop.
Stop xargs from performing further processing when event is triggered
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
seq 1 30 | xargs -I {} bash -c 'if [ "$0" == "10" ]; then exit 255; fi; echo $0' {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment