37
13
From this commandlinefu post:
$ diff <(wget -q -O - URL1) <(wget -q -O - URL2)
Seems like multiple standard inputs but---if I remember my Linux Porgramming course correctly---this can't be it. I thought that, by definition, standard input was one stream.
Perhaps this has zilch to do with stdin? Can someone explain this to me; maybe provide links to documentation.
Bonus: How would a script handle these multiple streams? If someone could provide a Python or Perl example, that would be very helpful.
1
Good question. In case you are unaware, there is a unix/linux Q&A site: http://unix.stackexchange.com
– Matt Ellen – 2010-10-20T23:02:09.220Note: in Bash it's
<(…)
; in Zsh process substitution syntax is=(…)
. – Kamil Maciorowski – 2019-05-22T15:56:00.2372
Documentation for process substitutions: http://www.gnu.org/software/bash/manual/bashref.html#Process-Substitution
– glenn jackman – 2014-05-08T15:03:30.603