Annotation of coherent/a/bin/phone, revision 1.1

1.1     ! root        1: : phone 3/13/90
        !             2: : Usage: phone name ...
        !             3: : Look for name in $PHONEBOOK and /usr/pub/phonebook.
        !             4: 
        !             5: case $# in
        !             6: 0)
        !             7:        echo "Usage: $0 name ..." >&2
        !             8:        exit 1
        !             9: esac
        !            10: 
        !            11: first=$1
        !            12: pattern=$1
        !            13: shift
        !            14: for name in $*
        !            15: do
        !            16:        pattern="${pattern}|${name}"
        !            17: done
        !            18: 
        !            19: if egrep -yh "$pattern" $PHONEBOOK /usr/pub/phonebook
        !            20: then
        !            21:        exit 0
        !            22: else
        !            23:        echo "phone: cannot find $first $*" 1>&2
        !            24:        exit 2
        !            25: fi

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.