#!/bin/bash
echo "Please input username:"
read name
echo "Please input number:"
read num
sum=0
while [ $sum -lt $num ]
do
sum=`expr $sum + 1`
/usr/sbin/userdel -r $name$sum
done
2016-11-16
批量删除用户
评论
发表评论
姓 名: