Hey feherke,
thank yo very much it works fine to this point :)
now i want to put a LOOP variable into the regex like
for(i=1;i<=5,i++){
gsub(/\yoldi\y/,"new"i)
}
but it doesnt work, it always makes the i part of the String like "i" and not the reference to the number (1-5) of the...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.