DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T u

⟦1b25d52dc⟧ TextFile

    Length: 609 (0x261)
    Types: TextFile
    Names: »usr/lbin/oldfile «

Derivation

└─⟦307897ef0⟧ Bits:30004042/core1.imd SW95705I 386/ix Multi-user Release 1.2
    └─⟦this⟧ »usr/lbin/oldfile « 

TextFile

#ident	"@(#)sadmin:shell/oldfile	1.3"
#	Look for files older than so-many days.

#!	chmod +x ${file}

accessed=accessed
a=a
u=u
case "$1" in
-m )	# modify days
	accessed=modified
	a=m
	u=
	shift
	;;
-c )	# inode modified
	accessed='inode modified'
	a=c
	u=c
	shift
esac
if [ $# = 0  -o  $# -gt 2 ]
then
	echo >&2 "Usage:  $0 [ -m|c ] directory [ age in days ] 
For more detail type:	prtdoc devcmd.$0"
	exit 1
fi
if [ "$2" = '' ]
then
	d=90
else
	d=$2
fi
echo "files not ${accessed} in the last ${d} days under directory $1"
cd $1
find . -${a}time +${d} -print  |
	sort  |
	xargs ls -dls${u}  |
	sed 's;\./;;'