cleanall.sh 144B

123456
  1. if [ -z "$1" ];
  2. then
  3. echo usage: $0 PATTERN ;
  4. exit 1;
  5. fi
  6. cat /etc/passwd | cut -d: -f1 | grep $1 | while read u; do userdel -r $u; done