Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Created August 28, 2014 18:22
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 shichao-an/f69b006245affb01f7d5 to your computer and use it in GitHub Desktop.
Save shichao-an/f69b006245affb01f7d5 to your computer and use it in GitHub Desktop.
Compare the first column by tab as field separator of the two files
#!/bin/bash
diff <(awk -v FS='\t' '{ print $1 }' a1.txt) <(awk -v FS='\t' '{ print $1 }' a2.txt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment