#!/bin/bash #--------------------------------------------- # Script to delete multiple user. # Tested on RedHat Linux # First released: July 29, 2000 # You should change: user (the file that contain # list of usernames to be deleted). # chmod this script to 755 # sifu@rindu.net [http://sifu.rindu.net] #--------------------------------------------- cat user | while read name do if test "./$name" != "$0" then userdel -r $name echo user $name deleted. fi done