Cover V05, I07
Article
Listing 1
Listing 2
Listing 3
Sidebar 1
Table 1
Table 2

jul96.tar


Listing 2: diskinfo.nawk

#
# @(#) diskinfo.nawk v1.0 93/03/18 BJA
#
/.*/ {
disksize = sprintf("%d", $3);
if (diskused >= 10)
diskused = (disksize * 1.1) / 1024;
else
diskused = (disksize * 1.5) / 1024;
if (diskused >= 1)
printf("%s\t%s\t%s\t%d\n", HOST, $1, $6,
diskused);
else
printf("%s\t%s\t%s\t1\n", HOST, $1, $6);
}

# End of File