Skip to content

Instantly share code, notes, and snippets.

@whyvez
Created June 1, 2015 00:46
Show Gist options
  • Select an option

  • Save whyvez/f41a8b4664563252d9c8 to your computer and use it in GitHub Desktop.

Select an option

Save whyvez/f41a8b4664563252d9c8 to your computer and use it in GitHub Desktop.
superdooper fkey checker
awk -F, 'NR==FNR{ k[$1 $2]=1; next; } NF{ if(!k[$1 $2]) print; }' ./examples/pgyi/data/plot.csv ./examples/pgyi/data/trees.csv
@whyvez
Copy link
Copy Markdown
Author

whyvez commented Jun 1, 2015

Prints orphaned trees records based on the company-company_plot_number key combination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment