Plan 9 from Bell Labs’s /usr/web/sources/contrib/gabidiaz/root/sys/src/cmd/spf/spfhd

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# usage: cat /sys/log/spf/debug | spfdistrib 
# the grep thing is to select the new lof format:
# date <tab> command <tab> status
grep 'CET' | awk '{  
						split($4,a,":"); 
						hour[a[1]]++;
					} END { 
						for(i=0;i<24;i++) { 
							if ( i< 10) { 
								k="0" i; 
							}  else { 
								k="" i;
							} 
							print i " " hour[k];
						} 
					}' | gview


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.