Skip to content

Instantly share code, notes, and snippets.

@jvwong
Last active January 21, 2020 15:07
Show Gist options
  • Save jvwong/35f32a38aefeb62d7e7d36c402b418c8 to your computer and use it in GitHub Desktop.
Save jvwong/35f32a38aefeb62d7e7d36c402b418c8 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Find row and print columns in tab-delimited file
#tax_id GeneID PubMed_ID
tax_id=9606
GeneID=9518
grep -Ei "^$tax_id\t$GeneID\t[0-9.]+$" ./data/gene2pubmed > result.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment