Return to skeyinfo.sh CVS log | Up to [local] / src / usr.bin / skey |
File: [local] / src / usr.bin / skey / Attic / skeyinfo.sh (download)
Revision 1.4, Sun Sep 29 04:46:17 1996 UTC (27 years, 8 months ago) by millert
Will now work with SHA when it happens. |
#!/bin/sh # $OpenBSD: skeyinfo.sh,v 1.4 1996/09/29 04:46:17 millert Exp $ # search /etc/skeykeys for the skey string for # this user OR user specified in 1st parameter KEYDB=/etc/skeykeys if [ -z "$1" ]; then WHO=`/usr/bin/whoami` else WHO=$1 fi if [ -f $KEYDB ]; then /usr/bin/awk '/^'$WHO'[ ]/ { if ($2 ~ /^[A-z]/) { print $3-1, $4} else { print $2-1, $3 } }' < $KEYDB fi