I have to replace the part from "+" or "-" to "**" with a string say "TEST".
I am specifically unable to traverse to 16th column and then replace from column17 to column38 with the string using sed.
Thanks a ton Jotne for the reply, but its giving quite a few error :
awk '{gsub(/-.+\*\*/,"-TEST**");gsub(/\+.+\*\*/,"+TEST**")}1' file.txt
awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near line 1
awk: bailing out near line 1
I am using sun-os 5.1 for executing this script.
Sorry for missing the code tags.