Plan 9 from Bell Labs’s /usr/web/sources/contrib/john/finger

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


#!/bin/rc

echo -n 'Login: ' $1 '				'
echo 'Real name: ' `{whois $1 | awk 'BEGIN {FS = "|"} 
	{print $3
	 exit}'
	}

echo 'Last login: ' `{tail -r /sys/log/auth | grep $1 | awk '{print $2, $3, $4
	exit}'}
	
echo -n 'Plan: '
if (test -e /usr/$1/.plan) {
	cat /usr/$1/.plan
} 
if (! test -e /usr/$1/.plan) {
	echo No Plan.
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].