Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我这里有个问题:
如果我有如下的链序列,如何反向读取这个链(unix)?
输入:CCTTTATCTTTATCTAG 所需输出:GATCTATTTCTATTTCC
谢谢您的帮助。=)
echo "CCTTTATCTTTATCTAG" | rev GATCTATTTCTATTTCC
rev 是你想要的。
一个相关的命令是 tac,它反转文件的行顺序。