Shellmaster
Programmer
Hello,
i have a small problem searching an exact String.
i want to make a substitution via sub("old","new") or gsub("old","new"). But i only want to the word "old" to be replaced.
Example :
old
older
gold
after using my awk-script i always get
new
newer
gnew
but what i want is
new
older
gold
can someone help me? I think its just a problem of the right reg. exp. or search string. i tried a lot but cant find it
thanks a lot
i have a small problem searching an exact String.
i want to make a substitution via sub("old","new") or gsub("old","new"). But i only want to the word "old" to be replaced.
Example :
old
older
gold
after using my awk-script i always get
new
newer
gnew
but what i want is
new
older
gold
can someone help me? I think its just a problem of the right reg. exp. or search string. i tried a lot but cant find it
thanks a lot