> How about:
> 
> 	grep "^key" file | awk -F: '{print $n}'
Which only works if the key field is the first field in the record - and
will also match "keywest".
Besides, the guy asked for "libraries" - i.e., he presumably wants the moral
equivalent of "getpwnam" and "getpwuid" and the like.
	Guy Harris