标签:col ash inux inpu 保存 用户 image img exist
#!/bin/bash read -p "please input a username:" username if id -u $username >/dev/null 2>&1; then echo "user exists" else echo "user does not exist" fi
把上面内存保存为 test.sh , 然后 sh test.sh 运行
标签:col ash inux inpu 保存 用户 image img exist
原文地址:https://www.cnblogs.com/dafei4/p/11146114.html