📄 lsearch.n
字号:
'\"'\" Copyright (c) 1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) lsearch.n 1.7 96/08/26 13:00:05'\" .so man.macros.TH lsearch n 7.0 Tcl "Tcl Built-In Commands".BS'\" Note: do not modify the .SH NAME line immediately below!.SH NAMElsearch \- See if a list contains a particular element.SH SYNOPSIS\fBlsearch \fR?\fImode\fR? \fIlist pattern\fR.BE.SH DESCRIPTION.PPThis command searches the elements of \fIlist\fR to see if oneof them matches \fIpattern\fR.If so, the command returns the index of the first matchingelement.If not, the command returns \fB\-1\fR.The \fImode\fR argument indicates how the elements of the list are tobe matched against \fIpattern\fR and it must have one of the followingvalues:.TP\fB\-exact\fRThe list element must contain exactly the same string as \fIpattern\fR..TP\fB\-glob\fR\fIPattern\fR is a glob-style pattern which is matched against each listelement using the same rules as the \fBstring match\fR command..TP\fB\-regexp\fR\fIPattern\fR is treated as a regular expression and matched againsteach list element using the same rules as the \fBregexp\fR command..PPIf \fImode\fR is omitted then it defaults to \fB\-glob\fR..SH KEYWORDSlist, match, pattern, regular expression, search, string
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -