Skip to content

Instantly share code, notes, and snippets.

@ivan-krukov
Created January 14, 2013 17:54
Show Gist options
  • Save ivan-krukov/4531912 to your computer and use it in GitHub Desktop.
Save ivan-krukov/4531912 to your computer and use it in GitHub Desktop.
This is a nice join snippet that you can use for a descriptive join that will include NAs in the proper columns for each file. Input: A and B, with two columns (tabs) that give an attribute to a name (eg object count) <obj_1> <count_1> <obj_2> <count_2>
join -a 1 -a2 -e 'NA' -o '0,1.2,2.2' ce hc > join.count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment