The question is somewhat unclear. Assuming you want to find all substrings comprised of same nucleic acid 2 or more times, sed can help:
sed -r 's:([ACGTacgt])\1+:\
>&\
:g;s:^[^>]+$::mg;s:\
+>?:\
:g' INPUT
**Output:**
TT
GG
AAAAA
CC
CC
CC
CC
AA
CC
AA
AA
For a specific nucleic acid, use for example `[Aa]` instead, at the start of the script.