On Mon, 2 Jul 2001, eric pareja wrote:
..
> modify Orly's line:
>
> GECOS=`cat /etc/passwd | grep ^$USERNAME | cut -f5 -d: | cut -f1 -d,`
>
> This only sucks when a user's full name has a comma, like Juniors.

Or you have extra info, like phone number and address. By convention these
are placed in the GECOS line, separated from the user's GECOS by commas.


-- 
Orlando Andico <[EMAIL PROTECTED]>
Mosaic Communications, Inc.

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GE d(-) s: a-25 C++++ UBLSI++++$ P+++ L+++>++++ E- W++ N(+)
o K? w O-- M- !V PS(++) PE- Y PGP-- t(+)@ 5(+) X++@ R(+) tv@
b++ DI++ G e++@ h--(*) r% y+
------END GEEK CODE BLOCK------

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to