One super-useful bash feature is anonymous named pipes, which allows the equivalent of multiple pipe "arguments" to a single command.
Instead of:
echo a b c > /tmp/foo
echo d e f > /tmp/bar
diff /tmp/foo /tmp/bar
Just do:
diff <(echo a b c) <(echo d e f)