Skip to content

Instantly share code, notes, and snippets.

@benjaminmateev
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benjaminmateev/2e444a1802bb9b601a0b to your computer and use it in GitHub Desktop.
Save benjaminmateev/2e444a1802bb9b601a0b to your computer and use it in GitHub Desktop.
Process substitution
# Apart from simplicity, another advantage of using process
# substitution is Bash will automatically parallelize your tasks.
diff <(curl http://somesite/file1) <(curl http://somesite/file2)
# Where some-command accepts a filename (or multiple filenames)
# as arguments, and another-command writes output to stdout.
some-command <(another-command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment