过滤/etc/passwd文件中以sh结尾的行,及root开头的行不显示包含login的行
grep -v "^sh$" /etc/passwd
grep -v "^root" /etc/passwd
grep -v "login" /etc/passwd