Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Last active August 15, 2019 00:11
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 miguelmota/8af8024919566d2ba950ad5bcdeba71a to your computer and use it in GitHub Desktop.
Save miguelmota/8af8024919566d2ba950ad5bcdeba71a to your computer and use it in GitHub Desktop.
Bash sed differences between two files matching column
awk 'NR==FNR{c[$2]++;next};c[$2] == 0' file1.txt file2.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment