Last active
September 1, 2016 11:38
-
-
Save sokil/22079eee01b0e1b3d84acc04753a4ef2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# delimited by tab | |
join -t $'\t' <(cat file1 | sort) <(cat file2 | sort) | |
# join fields | |
join -t $'\t' -a1 -e 'NULL' -o auto <(cat file1.csv | sort) <(cat file2.csv | sort | uniq -w 32) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment