I have a file like thisSRR959756.1081725       1       RNU2-54P:112:133:hsa-miR-1246SRR959756.1162547       1       RNU2-54P:112:133:hsa-miR-1246SRR959756.128602        2       RNU2-37P:85:108:hsa-miR-877-3p  RNU2-59P:99:122:hsa-miR-877-3pThis is a tab separated file where I want the result like thisSRR959756.1081725       1       RNU2-54P:112:133:hsa-miR-1246SRR959756.1162547       1       RNU2-54P:112:133:hsa-miR-1246SRR959756.128602        2       RNU2-37P:85:108:hsa-miR-877-3p  SRR959756.128602        2       RNU2-59P:99:122:hsa-miR-877-3pSo like in 3rd line I have 3rd and 4th columns. But 1st and 2nd column should always be printed and then 3rd column, then in the next line 1st and 2nd column and then 4th column.How can i do this in awk
awk manipulation
awk