This question shows research effort; it is useful and clear
3
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我想搜索以下正则表达式:“[ag][ag]aag[acg]”并仅将整个匹配转换为大写,而不是单独搜索 a 或 g。我尝试了 sed 'y/[ag][ag]aag[acg]/[AG][AG]AAG[ACG]/' 但这会将对小写 a 或 g 的单个搜索转换为大写 A 或 G。我只想当它发现与整个序列匹配时进行转换。