Created
September 8, 2015 18:38
-
-
Save tracertea/cbc3ba6c4b86070024ab to your computer and use it in GitHub Desktop.
Pass a parameter to multiple commands
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
find . -type f ! -name '*.strings' -exec sh -c 'strings $0 > $0.strings' {} \; |
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
sh -c 'echo command1 $0; echo command2 $0' 'hello world' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment