Hello,
I am trying to execute a very simple grep command, but I can't get it to work and I cannot figure out why. Here is exactly what I am doing:
echo 'ACTTTATTA' > myseq
cat myseq
ACTTTATTA
grep -E '^.{2}TTT' myseq
No results
I am trying to grep a sequence that has 3 Ts starting from the third nucleotide, just like the one I am creating above. But I get no output. The error seems to come from {2}, because I have been able to reproduce this behaviour only when I introduce {number} and it gets solved when I replace it by something else.
I have:
-
Tested it in a different computer
-
Tested it in google colab
-
Tested it in regex101 (it works as expected)
What am I doing wrong?