Created
May 12, 2014 05:52
-
-
Save torbiak/d46dcaf472c1bc1ecde4 to your computer and use it in GitHub Desktop.
cherry-pick args when using xargs
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
# Reverse order and control placement of the incoming args. | |
echo hi there bud | xargs -n 3 sh -c 'echo $2 $1 $0;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment