Skip to content

Instantly share code, notes, and snippets.

@wbazant
Created January 20, 2017 11:46
Show Gist options
  • Save wbazant/d617f1a2b37fdf51a545d4aa3b235fff to your computer and use it in GitHub Desktop.
Save wbazant/d617f1a2b37fdf51a545d4aa3b235fff to your computer and use it in GitHub Desktop.
#!/bin/bash
# Look at the header of the file, splay it into lines, then use grep -n to find out the position it's in
head -n1 $ATLAS_FTP/bioentity_properties/ensembl/mus_musculus.ensgene.tsv | tr '\t' '\n' | grep -n mgi_id | cut -f 1 -d :
#16
head -n1 $ATLAS_PROD/bioentity_properties/ensembl/mus_musculus.ensgene.tsv | tr '\t' '\n' | grep -n mgi_id | cut -f 1 -d :
#16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment