James Hughes wrote: > grep username /etc/passwd|cut -f 3 -d : Better is: grep "^username:" /etc/passwd|cut -f 3 -d : Regards Ruud Huynen rhn at orcom.ch ORCOM Systems AG Tel. +41 61 976 33 33 Fax. +41 61 971 54 71