Skip to content

Instantly share code, notes, and snippets.

View benjaminmateev's full-sized avatar

Benjamin Mateev benjaminmateev

View GitHub Profile
@benjaminmateev
benjaminmateev / process_substitution.sh
Last active August 29, 2015 14:22
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)