Annotation of researchv10no/cmd/calendar/calendar3, revision 1.1.1.1

1.1       root        1: ND=$1
                      2: T=/tmp/cal$$
                      3: trap "rm -f /tmp/cal$$*; exit" 0 1 2 13 15
                      4: 
                      5: sed "s/.*!//
                      6:      w ${T}1
                      7:      s/ .*//
                      8: " | /usr/lib/calendar4 >${T}3
                      9: : T1 = calpath uid, for every possible calendar
                     10: : T3 = calpath, for every real calendar
                     11: 
                     12: join ${T}3 ${T}1 >${T}4; mv ${T}4 ${T}1
                     13: : T1 = calpath uid, for every real calendar
                     14: 
                     15: /usr/lib/calendar2 $ND >${T}2
                     16: : T2 = egrep pattern for dates of interest
                     17: 
                     18: egrep -i -f ${T}2 '' `cat ${T}3` 
                     19: : result = calpath:entry, for every calendar consulted

unix.superglobalmegacorp.com

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