Skip to content

Instantly share code, notes, and snippets.

@sergiandreplace
Last active July 4, 2020 20:51
Show Gist options
  • Save sergiandreplace/0e3c526f535b43392ae052523d13208d to your computer and use it in GitHub Desktop.
Save sergiandreplace/0e3c526f535b43392ae052523d13208d to your computer and use it in GitHub Desktop.
Join US medicine tables
xsv join --no-case PRODUCTNDC product.txt PRODUCTNDC package.txt -d '\t' \
|xsv select NDCPACKAGECODE,PROPRIETARYNAME,PACKAGEDESCRIPTION,DOSAGEFORMNAME \
|xsv sample 10 \
|xsv table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment