Tcl Commands Manual
- Tcl
- Summary of Tcl language syntax.
- append
- Append to variable
- array
- Manipulate array variables
- break
- Abort looping command
- catch
- Evaluate script and trap exceptional returns
- cd
- Change working directory
- close
- Close an open file
- concat
- Join lists together
- continue
- Skip to the next iteration of a loop
- eof
- Check for end-of-file condition on open file
- error
- Generate an error
- eval
- Evaluate a Tcl script
- exec
- Invoke subprocess(es)
- exit
- End the application
- expr
- Evaluate an expression
- file
- Manipulate file names and attributes
- flush
- Flush buffered output for a file
- for
- ``For'' loop
- foreach
- Iterate over all elements in a list
- format
- Format a string in the style of sprintf
- gets
- Read a line from a file
- glob
- Return names of files that match patterns
- global
- Access global variables
- history
- Manipulate the history list
- if
- Execute scripts conditionally
- incr
- Increment the value of a variable
- info
- Return information about the state of the Tcl interpreter
- join
- Create a string by joining together list elements
- lappend
- Append list elements onto a variable
- library
- standard library of Tcl procedures
- lindex
- Retrieve an element from a list
- linsert
- Insert elements into a list
- list
- Create a list
- llength
- Count the number of elements in a list
- lrange
- Return one or more adjacent elements from a list
- lreplace
- Replace elements in a list with new elements
- lsearch
- See if a list contains a particular element
- lsort
- Sort the elements of a list
- open
- Open a file
- pid
- Retrieve process id(s)
- proc
- Create a Tcl procedure
- puts
- Write to a file
- pwd
- Return the current working directory
- read
- Read from a file
- regexp
- Match a regular expression against a string
- regsub
- Perform substitutions based on regular expression pattern matching
- rename
- Rename or delete a command
- return
- Return from a procedure
- scan
- Parse string using conversion specifiers in the style of sscanf
- seek
- Change the access position for an open file
- set
- Read and write variables
- source
- Evaluate a file as a Tcl script
- split
- Split a string into a proper Tcl list
- string
- Manipulate strings
- subst
- Perform backslash, command, and variable substitutions
- switch
- Evaluate one of several scripts, depending on a given value
- tclvars
- Variables used by Tcl
- tell
- Return current access position for an open file
- time
- Time the execution of a script
- trace
- Monitor variable accesses
- unknown
- Handle attempts to use non-existent commands
- unset
- Delete variables
- uplevel
- Execute a script in a different stack frame
- upvar
- Create link to variable in a different stack frame
- while
- Execute script repeatedly as long as a condition is met
Copyright © 1991-1994 The Regents of the University of California.
Copyright © 1994-1995 Sun Microsystems, Inc.
Copyright © 1995 Roger E. Critchlow Jr.