Last active
May 1, 2020 11:34
-
-
Save bsipos/f1aca91e5d664963d70d6afefd59e483 to your computer and use it in GitHub Desktop.
fq_count_grep.sh
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 - | |
set -o nounset | |
for i in `seq 1 100`; | |
do | |
start=`date +%N`; | |
grep -c "^+$" test.fq >/dev/null; | |
end=`date +%N`; | |
TS=`expr $end - $start`; | |
TM=`echo $TS/1000.0 | bc -l` | |
echo -e "grep\t1\t$TM" >> count_timing.tsv; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment