DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

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

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: @ T g

⟦a7012ec37⟧ TextFile

    Length: 874 (0x36a)
    Types: TextFile
    Notes: @(#)getdiskuse.sh 13.2 (RC International) 91/07/25
    Names: »getdiskuse«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/sadm/sysadm/bin/getdiskuse« 

TextFile

#!/sbin/sh
#	@(#)getdiskuse.sh	13.2 (RC International) 91/07/25

#	Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#ident	"@(#)oamintf:files/bin/getdiskuse.sh	1.4"

echo "" > /tmp/disk.use

fslist=`/etc/mount  |  tail +2 | cut -d' ' -f1  |  sort`
echo "
   FILE SYSTEM USAGE AS OF" `date '+%m/%d/%y %T'` > /tmp/disk.use
echo " 

   File             Free    Total   Percent
   System           Blocks  Blocks  Full
   ------           ------  ------  -------" >> /tmp/disk.use
    df -t $fslist | 
	awk ' NR > 1 {if ( $2 == 0)
					printf("   %-15s %7d %7d    %2d\n",$1,$3,$2,0) 
				  else
					printf("   %-15s %7d %7d    %2d\n",$1,$3,$2,($2-$3)*100/$2) 
			    }' >> /tmp/disk.use