Annotation of 40BSD/cmd/calendar/calendar.sh, revision 1.1.1.1

1.1       root        1: PATH=/bin:/usr/bin
                      2: tmp=/tmp/cal$$
                      3: trap "rm $tmp; exit" 0 1 2 13 15
                      4: /usr/lib/calendar >$tmp
                      5: case $# in
                      6: 0)
                      7:        egrep -f $tmp calendar;;
                      8: *)
                      9:        sed '
                     10:                s/\([^:]*\):.*:\(.*\):[^:]*$/y=\2 z=\1/
                     11:        ' /etc/passwd \
                     12:        | while read x
                     13:        do
                     14:                eval $x
                     15:                if test -r $y/calendar; then
                     16:                        egrep -f $tmp $y/calendar 2>/dev/null  | mail $z
                     17:                fi
                     18:        done
                     19: esac

unix.superglobalmegacorp.com

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