Print only the full name from Gecos field. The other fields

(phone, fax etc.) are usually out of date.
This commit is contained in:
Wolfram Schneider 1998-08-01 09:33:57 +00:00
parent 46043ba32a
commit 9b34c228bf
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=3231
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ while(<P>) {
($login,$passwd,$uid,$gid,$gcos,$home,$shell) = split(/:/);
# cleanup gecos
$gcos =~ s/,+$//;
$gcos =~ s/,.*//;
# disable daemons
next if $uid <= 100;

View file

@ -11,7 +11,7 @@ while(<P>) {
($login,$passwd,$uid,$gid,$gcos,$home,$shell) = split(/:/);
# cleanup gecos
$gcos =~ s/,+$//;
$gcos =~ s/,.*//;
# disable daemons
next if $uid <= 100;