|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: @ T c
Length: 640 (0x280)
Types: TextFile
Notes: @(#)calendar.sh 13.2 (RC International) 91/03/14
Names: »calendar«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/bin/calendar«
#! /bin/sh # # @(#)calendar.sh 13.2 (RC International) 91/03/14 # # Orig: calendar.sh 4.4 82/11/07 # PATH=/bin:/usr/bin:/usr/lib/cmplrs/cc tmp=/tmp/cal$$ trap "rm -f $tmp /tmp/cal2$$" trap exit 1 2 13 15 /usr/lib/calendar >$tmp case $# in 0) trap "rm -f $tmp ; exit" 0 1 2 13 15 (cpp calendar | egrep -f $tmp);; *) trap "rm -f $tmp /tmp/cal2$$; exit" 0 1 2 13 15 sed ' s/\([^:]*\):.*:\(.*\):[^:]*$/y=\2 z=\1/ ' /etc/passwd \ | while read x do eval $x if test -r $y/calendar then (cpp $y/calendar | egrep -f $tmp) 2>/dev/null > /tmp/cal2$$ if test -s /tmp/cal2$$ then < /tmp/cal2$$ mail $z fi fi done esac