code: plan9front

ref: 65bd53b9b89b0a84d0f16db4adc3f53fa6ab3a3a
dir: /rc/bin/whois/

View raw version
#!/bin/rc

>[2] /dev/null for(i in $*)
	grep '^'$i'	' /adm/whois ||
	grep -i $i /adm/keys.who ||
	grep -i $i /adm/netkeys.who ||
	grep -i $i /adm/whois ||
	grep -i $i /adm/users ||
	echo who indeed is $i