awk -F: 'BEGIN{printf "%-15s%-7s%s\n%-s\n", "Username","UID","GID","=========================="} $3 >= 500 && $3 != 65534 {printf "%-15s%-7s%s\n", $1,$3,$4} END{printf "%s\n%s\n", "==========================","List Over"}' /etc/passwd
%-15s左对齐%-7s左对齐%s\n换行%-s\n左对齐换行
Username       UID    GID
==========================
messagebus     100    101
haldaemon      101    102
sshd           71     65
mysql          60     111
==========================
List Over
09-30 20:47