#!/bin/bash if [ $# -eq 1 ] ; then if [ -f "$1" ] ; then while read username ; do user add -s /bin/false $username &>/dev/null done < $1 else echo "Input file name not found" exit 1 fi else echo "please input a file name" exit 2 fi
bash初学if语句
猜你喜欢
转载自www.cnblogs.com/xiejh/p/10588313.html
今日推荐
周排行