Skip to content

Instantly share code, notes, and snippets.

@bsipos
Last active May 1, 2020 11:34
Show Gist options
  • Save bsipos/f1aca91e5d664963d70d6afefd59e483 to your computer and use it in GitHub Desktop.
Save bsipos/f1aca91e5d664963d70d6afefd59e483 to your computer and use it in GitHub Desktop.
fq_count_grep.sh
#!/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