Unix and Linux Discussions Tagged with append |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
71,919 |
Shell Programming and Scripting |
|
|
|
1 |
2,911 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,237 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
9,598 |
Shell Programming and Scripting |
|
|
|
4 |
2,644 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,900 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
2,059 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
249,783 |
UNIX for Advanced & Expert Users |
|
|
|
11 |
7,639 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,900 |
UNIX for Beginners Questions & Answers |
|
|
|
43 |
25,129 |
Programming |
|
|
|
2 |
2,474 |
Shell Programming and Scripting |
|
|
|
3 |
3,511 |
Shell Programming and Scripting |
|
|
|
3 |
7,721 |
Shell Programming and Scripting |
|
|
|
3 |
1,866 |
Shell Programming and Scripting |
|
|
|
3 |
4,668 |
Shell Programming and Scripting |
|
|
|
1 |
2,864 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
3,764 |
Shell Programming and Scripting |
|
|
|
8 |
4,621 |
Shell Programming and Scripting |
|
|
|
6 |
3,103 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,600 |
Shell Programming and Scripting |
|
|
|
4 |
107,830 |
Shell Programming and Scripting |
|
|
|
0 |
4,278 |
Shell Programming and Scripting |
|
|
|
4 |
3,884 |
Shell Programming and Scripting |
|
|
|
1 |
4,098 |
Shell Programming and Scripting |
|
|
|
1 |
2,271 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,545 |
Shell Programming and Scripting |
|
|
|
4 |
13,791 |
Shell Programming and Scripting |
|
|
|
2 |
4,956 |
Shell Programming and Scripting |
|
|
|
1 |
7,593 |
Shell Programming and Scripting |
|
|
|
6 |
3,721 |
Shell Programming and Scripting |
|
|
|
3 |
3,770 |
Shell Programming and Scripting |
|
|
|
17 |
32,960 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,384 |
Shell Programming and Scripting |
|
|
|
10 |
8,892 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
4,198 |
Shell Programming and Scripting |
|
|
|
2 |
1,971 |
Shell Programming and Scripting |
|
|
|
1 |
2,261 |
Shell Programming and Scripting |
|
|
|
4 |
4,508 |
Shell Programming and Scripting |
|
|
|
2 |
8,307 |
UNIX for Dummies Questions & Answers |
append(1T) Tcl Built-In Commands append(1T)
__________________________________________________________________________________________________________________________________________________
NAME
append - Append to variable
SYNOPSIS
append varName ?value value value ...?
_________________________________________________________________
DESCRIPTION
Append all of the value arguments to the current value of variable varName. If varName doesn't exist, it is given a value equal to the
concatenation of all the value arguments. The result of this command is the new value stored in variable varName. This command provides
an efficient way to build up long variables incrementally. For example, ``append a $b'' is much more efficient than ``set a $a$b'' if $a
is long.
EXAMPLE
Building a string of comma-separated numbers piecemeal using a loop.
set var 0
for {set i 1} {$i<=10} {incr i} {
append var "," $i
}
puts $var
# Prints 0,1,2,3,4,5,6,7,8,9,10
SEE ALSO
concat(1T), lappend(1T)
KEYWORDS
append, variable
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWTcl |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for Tcl is available on http://opensolaris.org.
Tcl append(1T)