Bash Process substitution Compare two files from the web


Example

The following compares two files with diff using process substitution instead of creating temporary files.

diff <(curl http://www.example.com/page1) <(curl http://www.example.com/page2)