NetBSD/share/sushi/users/listuser/script

19 lines
372 B
Bash
Executable File

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