It is possible merge columns with the same value in awk? Something likeif awk '$1 = $2' then mergeI got thisAZ14962 AZ14962 ctg_    104AZ14962 AZ14962 ctg_    4AZ14962 AZ14962 ctg_    61AZ14962 AZ14962 ctg_    23Expected output: AZ14962 ctg_    104AZ14962 ctg_    4AZ14962 ctg_    61AZ14962 ctg_    23
Merge columns with the same value with awk
text processing;awk;columns
Should be quite simple:awk '$1==$2{$2=}1' fileFirst we test if first column is equal second ($1==$2) and if result is positive then delete second column ($2=). Final 1 just prints everything.