내가 ("__"에 의해 결합) NAME1 및 NAME2 두 개의 열을 연결하고자하는 follows-연결하여 두 개의 열 및 병합 된 열을 붙여
loci1 loci2 name1 name2
utr3p utr3p TERF1 ISCA2
utr3p intron LPP PAAF1
utr3p intron RPL37A RCC1
coding intron BAG2 RP11
intron intron KIF1B SNORA21
intron downstream GUSBP4 CTD
intron intron CLTC VMP1
utr3p utr3p PCYT1A ZHX3
같은 탭으로 구분 된 파일이 있습니다. 병합 열은해야한다 새 파일에서 새 열 "merged_names"로 붙여 넣습니다. awk을 사용하여 어떻게 할 수 있습니까?
예상 출력 -
이loci1 loci2 name1 name2 merged_names
utr3p utr3p TERF1 ISCA2 TERF1__ISCA2
utr3p intron LPP PAAF1 LPP__PAAF1
utr3p intron RPL37A RCC1 RPL37A__RCC1
coding intron BAG2 RP11 BAG2__RP11
intron intron KIF1B SNORA21 KIF1B__SNORA21
intron downstream GUSBP4 CTD GUSBP4__CTD
intron intron CLTC VMP1 CLTC__VMP1
utr3p utr3p PCYT1A ZHX3 PCYT1A__ZHX3
숙제를? – ams