Created
December 9, 2010 21:11
-
-
Save rhowardiv/735348 to your computer and use it in GitHub Desktop.
nargs -- a wrapper for xargs -d'\n' that cleans leading/trailing whitespace
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
#!/bin/bash | |
sed 's/^[ ]\+//' | sed 's/[ ]\+$//' | xargs -d'\n' $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparently GNU Parallel works this way by default. There's no RHEL package, but I guess it's just a Perl program...