In bash, we often use redirects (that is <
and >
) to get output from a command to a file, or input from a file to a command. But sometimes, commands takes two or more files as input. Then our ordinary scheme does not work anymore.
Classical problem: Diff output from two commands
Let’s say you want to diff(1)
the output of two commands. For example, compare the contents of two directories. ... [continue reading]