如何从我的序列中消除这种运行间隙?
\ACCATTTTTTTATAGTGA
AGTACAGTAGATATAAACCCACCACAATAGGCTGAGGCTTCC\TTATCAATAGCTTGATT
TTGGAAATACGTAGAACCCCAATGTGGTCCAAAGCTACTTGGA\CATTGGTCAAAATCCA
AGTCACATTATCGTGACCATCTTAATCTTTACATTTTTCAAAAT\GCATGAACCTTTTTC
CTCAAAAATAGCTCTAATACTTTGCTCCTATTGCGGGTCCCACAA\TACAATTTAAATTT
TACCATAATTAAAGTTACCTTAAACTCTCCGAACCTCATATGTCAC\GAACTTGAAGTCG
TACCTTTTTCCAAGTCGGCCATGGTTCATCAAATTTTTGTCTAATGA\TCCATTAGAAGA
TAATGGAAGGGCCGTGTGCTGACGTAAATATATGGAAAATGATATTAT\CAATGTCATAT
TTAAAGAATGTTATTTAAGAAAATAACTATTATATTAAAATTTACTTAC\TCTTTGTCTA
TTGCTTGAAGAAAAGGACTTTTATCAATTGGATGATAAGAGTGTAGAGAT\AGGTATTCA
GGTATCAACGAATCTTCTAGTGCTGAAGGTGTGACCACTATAGAAGGTATA\ATGGAAAT
CGATTTGGCTACAAAGGTAGGCTTTGGTTCCTACTGAACCGTAGAAAATGTG\CCCTGTT
GGACAATAGGAATTGTTGACTCTAAGGTTGAGATGTGAATGGTAGAAGTGAGA\AAGTTG
ATGGTGGCTAGAGCTCTCCCACCAACACCATGACCTTTGCCATGGTTAGATGGT\CTACA
ACCATCACTTCTACCTCTGTCCATCATCTGTATGTAGAAATTGTTACATATATGA\CAAT
TCTAAGTGAACATAAATAAACAAAGTGAAATATTATATCTTTAGTAAAAAAGAAAG\TAA
CCCAACTTATGAGAGAAAACTCAAACTTGATCATTTTTTCTACACTAAAACGTGTCA\CT
TATCTTTTCCCTCATAATCACTACAAGTAATTATTACAAATAATGGTCATACAAATGT\A
答案1
和tr
:
tr -d \\\\ <file_in >file_out
答案2
你可以将你的txt传递给sed's@\\@@g'
sed 's@\\@@g' sq.txt > new.sq.txt
笔记cat
:根据评论建议删除命令。
或使用cat sq.txt | tr -d '\\' > new.sq.txt