[root@rhel77 ~]# cat delete_user.sh
!/bin/bash
user=$(awk -F: '$3>=1000{print $1}' /etc/passwd)
echo $user
for i in $user
do
userdel -r $i
done
[root@rhel77 ~]# cat delete_user.sh
user=$(awk -F: '$3>=1000{print $1}' /etc/passwd)
echo $user
for i in $user
do
userdel -r $i
done