Created
August 12, 2013 18:45
-
-
Save pipitone/6213772 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
filename=$1 | |
datafile=$2 | |
IFS=',' # splits rows by commas | |
while read ID symb chr start stop; do | |
cat $datafile | awk "(\$2==$chr) && (\$3>=$start) && (\$3<=$stop) {print}" | |
done < $filename > PGC1_315immunegenetest.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment