눈바래다

# author : kim

# date : 04-09-14

# content : /etc/passwd 파일 검증 스크립트

NF != 7 {printf("line %d, does not have 7 fields: %s\n", NR, $0)}

$1 !~ /[A-Za-z0-9]/ {printf("line $d, nonealphanumeric user id : %s\n", NR, $0)}

$2 == "*" {printf("line %d, no password: %s\n", NR, $0)}