Skip to content

Instantly share code, notes, and snippets.

@pierophp
Created April 18, 2018 11:34
Show Gist options
  • Save pierophp/b7bf10669a66cd5fd7a1c68560cb3956 to your computer and use it in GitHub Desktop.
Save pierophp/b7bf10669a66cd5fd7a1c68560cb3956 to your computer and use it in GitHub Desktop.
Extract diff from 2 files
# to apply trim, add: sed 's/^ *//;s/ *$//'
comm -23 <(sort file1) <(sort file2) > file_with_diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment