Query: lsearch
OS: redhat
Section: n
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
lsearch(n) Tcl Built-In Commands lsearch(n) __________________________________________________________________________________________________________________________________________________NAMElsearch - See if a list contains a particular elementSYNOPSISlsearch ?mode? list pattern _________________________________________________________________DESCRIPTIONThis command searches the elements of list to see if one of them matches pattern. If so, the command returns the index of the first match- ing element. If not, the command returns -1. The mode argument indicates how the elements of the list are to be matched against pattern and it must have one of the following values: -exact The list element must contain exactly the same string as pattern. -glob Pattern is a glob-style pattern which is matched against each list element using the same rules as the string match command. -regexp Pattern is treated as a regular expression and matched against each list element using the rules described in the re_syntax refer- ence page. If mode is omitted then it defaults to -glob.KEYWORDSlist, match, pattern, regular expression, search, string Tcl 7.0 lsearch(n)
Related Man Pages |
---|
lsearch(1t) - opensolaris |
lsearch(n) - centos |
lsearch(n) - osx |
lsearch(ntcl) - mojave |
lsearch(ntcl) - osx |
Similar Topics in the Unix Linux Community |
---|
How to POST (and not GET) using Vue.js Axios and URLSearchParams |