[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Q



Erez Doron writes:
 > Hi
 > 
 > does anybody knows of a unix command that
 > checks if a there is such a user on the system ?
 > 
 > i meen that I'll ask if there is a username 'yossi' or 'moshe'
 > on this host, and I'll get an answer
 > 
 > ( do not tell me 'finger', this requires a daemon )
 > 
 > regards
 > Erez.
 > 
 > 

1) awk -F: '$1 == "yossi"' /etc/passwd
2) egrep "^moshe" /etc/passwd

Oleg Goldshmidt                
goldshmt@netvision.net.il