Skip to content
Advertisement

emailing diff output between two files only if there is a difference

How can I email the output between file1 and file2 but only if there is a difference? Lets say I’m using a shell script.

JavaScript

Advertisement

Answer

Use the || concatenation.

JavaScript

More info here

Advertisement