Skip to content

Instantly share code, notes, and snippets.

@johnmurch
Created August 25, 2022 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmurch/478085e7f9bffff3cfaa322a8c73c850 to your computer and use it in GitHub Desktop.
Save johnmurch/478085e7f9bffff3cfaa322a8c73c850 to your computer and use it in GitHub Desktop.
Get Diff between 2 files
#!/bin/bash
sort file1 file2 | uniq -c | awk '$1 == 1 {print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment