Skip to content

Instantly share code, notes, and snippets.

@lysu
Created December 8, 2012 12:19
Show Gist options
  • Save lysu/4240076 to your computer and use it in GitHub Desktop.
Save lysu/4240076 to your computer and use it in GitHub Desktop.
Compare 2ed Column and select exist in file2 but not in file1
awk 'FNR==NR {A[$2];next;} !($2 in A)' file1 file2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment