2001-01-05 05:06:53 +03:00
|
|
|
#!/bin/sh
|
2004-03-09 23:06:42 +03:00
|
|
|
# $NetBSD: script,v 1.2 2004/03/09 20:06:42 garbled Exp $
|
2001-01-05 05:06:53 +03:00
|
|
|
cat /etc/passwd | awk ' \
|
|
|
|
BEGIN { \
|
|
|
|
FS=":"; \
|
2004-03-09 23:06:42 +03:00
|
|
|
print "Username Real name \
|
|
|
|
UID" \
|
2001-01-05 05:06:53 +03:00
|
|
|
} \
|
|
|
|
{ \
|
|
|
|
gsub("&", $1); \
|
|
|
|
printf("%s", $1);
|
|
|
|
for (x=length($1); x < 12; x++ ) \
|
|
|
|
printf(" "); \
|
|
|
|
printf("%s", $5); \
|
2004-03-09 23:06:42 +03:00
|
|
|
for (x=length($5); x < 40; x++ ) \
|
2001-01-05 05:06:53 +03:00
|
|
|
printf(" "); \
|
|
|
|
printf("%7d\n", $3); \
|
|
|
|
}'
|