I have a bed file :
xyz.00001 650 730 Target "Motif:DUF" 603 686
xyz.00001 12218 12323 Target "Motif:ERV" 906 995
xyz.00001 14034 14196 Target "Motif:R1-I" 95 257
xyz.00001 15336 15393 Target "Motif:R1-I2" 5843 5900
xyz.00001 17117 17166 Target "Motif:Zin" 161 211
.
.
.
I need to append numbers to the last column, preferably to the end of "Target", so Target1, Target2, Target3,...
awk '{print "Target"NR $s}' test2
the result is
Target1xyz.00001 650 730 Target "Motif:DUF" 603 686
Target2xyz.00001 12218 12323 Target "Motif:ERV" 906 995
Target3xyz.00001 14034 14196 Target "Motif:R1-I" 95 257
Target4xyz.00001 15336 15393 Target "Motif:R1-I2" 5843 5900
Target5xyz.00001 17117 17166 Target "Motif:Zin" 161 211
how to fix this?
Also, since I am more primitive in R, how would you do that in R?