SCO 5.06
Is there a variable that holds a user's comment?
In scoadmin -account, there's a comment field which we normally
populate with the user's name.
Or ... am I better off greping /etc/passwd?
Thanks!
SCO 5.06
Is there a variable that holds a user's comment?
In scoadmin -account, there's a comment field which we normally
populate with the user's name.
Or ... am I better off greping /etc/passwd?
Thanks!
I have never seen a variable like that. But try awk rather than grep:
awk -F: '$1 == "'$USER'" { print $5}' < /etc/passwd
Cut and paste to be you get the quoting right.
I kinda thought that too, but I gave it a shot ...
Thanks Perderabo ... that works beautifully.