I am trying to replace a part of a pattern, such as, if I have
col(3,B,14), after applying the
sed command, I would like to get
col(3,B,t14) which adds the
t character to the third parameter in the pattern.
I am trying with :
s="col(3,B,14)" echo $s | sed 's/col([0-9],[A-Z],[0-9])/col([0-9],[A-Z],t[0-9])/g'
But, it returns the original string. I would appreciate it if you could give some advice. Thanks.