-
sabety
- Posts: 76
- Joined: Wed Dec 06, 2000 7:11 am
Post
by sabety »
How can I add a value to the end of a buffer?
I am trying to do this
<sandr ">>=" "$value" $MYVAR>
with no luck...
-
mark
- Site Admin
- Posts: 5514
- Joined: Tue Apr 25, 2000 6:56 pm
Post
by mark »
A number of ways depending on your needs.
<$MYVAR=($MYVAR+$value)>
<sum "%s" $MYVAR $value><$MYVAR=$ret>
<strfmt "%s%s" $MYVAR $value><$MYVAR=$ret>
If you're building a list of items to concatenate you could use
<$MYVAR=$MYVAR $value>
<$MYVAR=$MYVAR $anothervalue>
<sum "%s" $MYVAR><$MYVAR=$ret>