4 examples for diff

{{ score }}
  # Show the difference between two files without creating temporary files
diff <(sort file1) <(sort file2)
        
{{ score }}
  # show the difference between two directories
diff -r DIRECTORY1 DIRECTORY2
        
{{ score }}
  # Show the difference between two directories, ignoring .DS_Store files
diff -rx .DS_Store DIR1 DIR2
        
{{ score }}
  # diff remote files over SSH

ssh user@remote_host "cat remote_file.txt" | diff - local_file.txt