脚本 #!/bin/bash read -p "请输入要查询的用户名:" A echo "-----------------------------" n=`cat /etc/passwd | awk -F: '$1~/^'$A'$/{print}' | wc -l` if