Created
June 14, 2010 13:49
-
-
Save keithshep/437703 to your computer and use it in GitHub Desktop.
strip rows with N or H calls from a dir full of genotype CSV files
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 | |
echo "input directory: $1" | |
echo "output directory: $2" | |
for i in `ls $1` ; do echo "striping N and H calls from: $i" && egrep -v '(,N,)|(,N$)|(,H,)|(,H$)|(,n,)|(,n$)|(,h,)|(,h$)' $1/$i > $2/$i; done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment