Hi Guys,
I'm really new to Unix and Linux and other scripting languages but recently I hv been really enthusiatic about learning more to help out on my work.
So I have a file with 3 columns. A sample of it looks like looks like this :
K2_537841 AAATCAGCCGCAACATTTGC AACCACCTGCCTTTGTTTCC
K2_793131 AGAAGGTCGGGGACTTCTTC CCTGAGTGAGCGCATATTGC
K4_631836 GGACAATACACGCCAATCTG TTGATTCTTCCTGGCGGTAG
K7_478339 GCGGCCAACAATGTAACCTT GGTGGCCTGGCATAATAGGA
K8_337205 CTGCAGACCTGGAGTTCCAA GGACCCATTTATGGGTTTCC
K10_583020 AATGCCATTGACCGTTTGAG TAACTACTGACGCAGCAGAC
K12_175548 CTTCTCCGCAATGGAGAGAG GTATGGCACTTCGACTTTCG
K13_93992 GCAAGTCAGGGTTCTCATCG AAGTGGATCCTTCCGGTTCC
K15_400245 GTTAATGCCCGACACCCTAG AGCCAGAAAATGACGCACTG
K15_691640 GAAGACGACCGTTCGTCTTC TTGTGCGCCTGTTTCTGATG
Now what I need doing is using command line/script I want to duplicate each entry in the first column and place it in the line below. Then I need to rename the first one usinf _Fw and the second one as _Rev. Its gets more complicated. Then each entry in column 2 to be placed in front of the _Fw named fields and each entry in column 3 to be placed in front the _Rev named fields.
Can someone please help or suggest ways. Again I'm a newbie so even basic comments will be very much appreciated.
Thanks and hope to hear from you all.
Have a nice day
Pawan