MATCHES

Section: User Commands (1)
Updated: local
Index Return to Main Contents
 

NAME

matches - test if string2 is contained in string1  

SYNOPSIS

matches string1 string2  

DESCRIPTION

Matches returns a 0 if string2 is contained in string1, otherwise it returns a 1.

Matches is designed to be used by Pcomm in a shell script for automatically logging a user onto a remote system.

 

EXAMPLE

        # read some input
        read junk
        # test to see the string matches 'login failed'
        matches $junk 'login failed'
        # test the exit code of the matches command
        if [ $? -eq 0 ]
        then
                exit 1
        fi
 

SEE ALSO

pcomm(1), waitfor(1), modem_break(1), Pcomm Reference Manual


 

Index

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:50:50 GMT, February 02, 2023