#
# Convert GECOS information in password files to alias syntax.
#
# Contributed by Kari E. Hurtta <Kari.Hurtta@ozone.fmi.fi>
#
print "# Generated from passwd by $0\n";
while (@a = getpwent) {
print "$name: root\n"; # handle pseudo user
}
$fullname =~ s/\.*[ _]+\.*/./g;
print "$fullname: $name\n";
} else {
print "# $fullname: $name\n"; # avoid strange names
}
};
endpwent;