发布网友
共1个回答
热心网友
#!/bin/sh
user=$(cat /etc/passwd |grep -E -c "^aaa")
if [ $user -gt 0 ]
then
echo "fuond user"
else
echo "no such user"
fi
用户名为aaa