|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T u
Length: 1057 (0x421) Types: TextFile Names: »usr/lbin/filecheck «
└─⟦307897ef0⟧ Bits:30004042/core1.imd SW95705I 386/ix Multi-user Release 1.2 └─⟦this⟧ »usr/lbin/filecheck «
#ident "@(#)sadmin:shell/filecheck 1.3" # check for files added and deleted below the given directory # Must be able to create or write files .today and .yesterday in the # given directory. #! chmod +x ${file} if [ $# -ne 1 ] then echo >&2 "Usage: $0 directory For more detail type: prtdoc devcmd.$0" exit 1 fi cd $1 # Getaround for those who don't want service if [ -f .yesterday -a \( ! -r .yesterday -o ! -w .yesterday \) ] then exit 0 fi if [ -f .yesterday ] then date=`fdate -'%h %d, 19%y' .yesterday` else cp /dev/null .yesterday fi find . -print | sed -n 's:^\./::p' | sort > .today if cmp -s .today .yesterday then echo " No changes under $1 since ${date-?}" rm -f .today exit fi echo " _____ _____▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀files added under $1 since ${date-?}" comm -13 .yesterday .today echo " _____ _______▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀▶08◀files deleted" comm -23 .yesterday .today echo " old total number of files\c" ; wc -l < .yesterday mv .today .yesterday 2>/dev/null || cp .today .yesterday echo " new total number of files\c" ; wc -l < .yesterday