1

The method export vname=value will override the original value. I want a way to append to the old value by colon.

Any idea how? Thanks.

1 Answer 1

2

Try this:

export vname=${vname}:appendedtext

Demo:

$ export foo=bar
$ echo $foo
bar
$ export foo=${foo}:baz
$ echo $foo
bar:baz
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .