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

⟦0bdb545b6⟧ TextFile

    Length: 418 (0x1a2)
    Types: TextFile
    Names: »usr/lbin/largest «

Derivation

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

TextFile

#ident	"@(#)sadmin:shell/largest	1.3"
#	Find largest files under the given directory.

#!	chmod +x ${file}
if [ x$1 = x ]
then
	d=.
else
	d=$1
fi
if [ x$2 = x ]
then
	b=10
else
	b=$2
fi
echo "	the ${b} largest files under ${d}"
a="`expr 0${b} "*" 10`"
cd ${d}
du -a  |
  sort -bnr +0 -1  |
  sed -n 1,0${a}'s:^[0-9]*	\./:ls -ldsu :p'  |
  sh -  |
  grep -v '^ *[0-9][0-9]* d'  |
  sed -n 1,0${b}p  |
  sort -bnr +5 -6