Created
August 28, 2014 18:22
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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