lsearch man page on UnixWare

Man page or keyword search:  
man Server   3616 pages
apropos Keyword Search (all sections)
Output format
UnixWare logo
[printable version]

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

______________________________________________________________________________

NAME
       lsearch - See if a list contains a particular element

SYNOPSIS
       lsearch ?mode? list pattern
_________________________________________________________________

DESCRIPTION
       This  command  searches	the  elements  of  list	 to see if one of them
       matches pattern.	 If so, the command returns the	 index	of  the	 first
       matching	 element.   If not, the command returns -1.  The mode argument
       indicates how the elements of the list are to be matched	 against  pat‐
       tern and it must have one of the following values:

       -exact The  list	 element  must contain exactly the same string as pat‐
	      tern.

       -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
	      reference page.

       If mode is omitted then it defaults to -glob.


KEYWORDS
       list, match, pattern, regular expression, search, string

Tcl				      7.0			    lsearch(n)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server UnixWare

List of man pages available for UnixWare

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net