我有一個文件,我需要根據另一個文件中給出的字符範圍來提取段。我想用awk命令來做。從awk文件中提取段
文件一個看起來像這樣(一行):
AATTGTGAAGGTAGATGGCTCGCTCCGCGGCGGGGCGCGCGCGCGCGCGCGGGCTCGCTATATAGAGATATATGCGCGCGGCGCGCGGCGCGCGCGGCGCGCGCGTATATATATAGGCGCGCGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGAAAAAAAAAAAAAAAAAAAAAAAAATTTTTTTTTTTTTTTTTTTTTTTTTTTTTTGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGCCCCCCCCCCCCCC
第二個文件將類似於如下:
5 10
13 20
22 24
和輸出將是:
GTGAAG
AGATGGCT
GCT
謝謝。解釋非常感謝! – user1308144
我很樂意幫忙! :) –