redhat man page for lindex

Query: lindex

OS: redhat

Section: n

Links: redhat man pages   all man pages

Forums: unix linux community   forum categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

lindex(n)						       Tcl Built-In Commands							 lindex(n)

__________________________________________________________________________________________________________________________________________________

NAME
lindex - Retrieve an element from a list
SYNOPSIS
lindex list index _________________________________________________________________
DESCRIPTION
This command treats list as a Tcl list and returns the index'th element from it (0 refers to the first element of the list). In extracting the element, lindex observes the same rules concerning braces and quotes and backslashes as the Tcl command interpreter; however, variable substitution and command substitution do not occur. If index is negative or greater than or equal to the number of elements in value, then an empty string is returned. If index has the value end, it refers to the last element in the list, and end-integer refers to the last element in the list minus the specified integer offset.
SEE ALSO
list(n), lappend(n), linsert(n), llength(n), lsearch(n), lsort(n), lrange(n), lreplace(n)
KEYWORDS
element, index, list Tcl 8.2 lindex(n)
Related Man Pages
lindex(n) - centos
lindex(n) - opendarwin
lindex(n) - suse
lrange(n) - suse
lindex(ntcl) - osx
Similar Topics in the Unix Linux Community
Solaris passwd script
help a beginner, expect script, command not found
Expect scripting telnet stop on bad username or password
Expect timeout
Using Expect for the first time