On 2013-02-19,
as...@yahoo.com <
as...@yahoo.com> wrote:
> I want to replace a variable in a shell script, like the following line:
>
> export NAME=FOO_1 #bla bla
>
> Change FOO_1 to BAR one.
>
> I tried following, none is working the way I want.
>
> 1) sed -i s/NAME=[a-zA-Z]\w*$/NAME=BAR_1/ file
>