Sure, it's very useful. Of course, diff can read one of its inputs from stdin, so you can use
grep foo file1 | sort -u | diff - <( grep foo file2 | sort -u )
In reply to Re^5: passing pipes on the command line
by ambrus
in thread passing pipes on the command line
by iradik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |