Hello,
I need to re-format a string using awk.
each occurence of P_1542_SET_N should become CAG(P_1542)=NORMAL. for exemple
P_1542_SET_N AND P_1642_SET_R
=>
CAG(P_1542)=NORMAL AND CAG(P_1642)=REVERSE
I tried something like :
gsub("P_[0-9][0-9][0-9][0-9]","CAG(P_[0-9][0-9][0-9][0-9])=NORMAL",MyString);
but I on ly get P_[0-9][0-9][0-9][0-9] in each occurence.
Does anyone has an idea ?
Many thancks
I need to re-format a string using awk.
each occurence of P_1542_SET_N should become CAG(P_1542)=NORMAL. for exemple
P_1542_SET_N AND P_1642_SET_R
=>
CAG(P_1542)=NORMAL AND CAG(P_1642)=REVERSE
I tried something like :
gsub("P_[0-9][0-9][0-9][0-9]","CAG(P_[0-9][0-9][0-9][0-9])=NORMAL",MyString);
but I on ly get P_[0-9][0-9][0-9][0-9] in each occurence.
Does anyone has an idea ?
Many thancks