A
ask8y
I would search a variable in a script, and change the value. For example for following line
export NAME=FOO_1 #something
Change it to
export NAME=BAR_1 #something
I have following two rules. I expect 1) work. But 1) did not yield a match. 2) did. Can some one explain?
1) s/NAME=[a-zA-Z]\w*$/NAME=BAR_1/
2) s/NAME=[a-zA-Z]\w*/NAME=BAR_1/
Thanks in advance,
export NAME=FOO_1 #something
Change it to
export NAME=BAR_1 #something
I have following two rules. I expect 1) work. But 1) did not yield a match. 2) did. Can some one explain?
1) s/NAME=[a-zA-Z]\w*$/NAME=BAR_1/
2) s/NAME=[a-zA-Z]\w*/NAME=BAR_1/
Thanks in advance,