File:  [Research Unix] / researchv10no / cmd / shares.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#!/bin/sh -p
pl -ag \
 | awk '/^Name:/ { name = $2; }
	/^Shares:/ { shares = $2 }
	/^Allocated share:/ { ashare = $3 }
	/^Effective share:/ { eshare = $3 }
	/^Normalised usage:/ { printf("%-10sShares:%4s  Share:%8s  E-Share:%9s  Usage:%13s\n", name, shares, ashare, eshare, $3); }' \
 | sort -t: +4nr -5 +3n

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.