matches.1

来自「通讯程序源码」· 1 代码 · 共 34 行

1
34
字号
.TH matches L.SH NAMEmatches \- test if string2 is contained in string1.SH SYNOPSIS.B matches string1 string2.SH DESCRIPTION.I Matchesreturns a 0 if string2 is contained in string1, otherwise it returns a 1..PP.I Matchesis designed to be used by.I Pcomminside a shell script for automating keyboard input to log user onto aremote system..PP.SH EXAMPLE.nf.RS 5# read some inputread junk# test to see the string matches 'login failed'matches $junk 'login failed'# test the exit code of the matches commandif [ $? \-eq 0 ]then.RS 5	exit 1.REfi.RE.fi.SH "SEE ALSO"pcomm(1), pcomm_cmd(1), waitfor(1), Pcomm Reference Manual

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?