[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] deleting a 1000 users



jam mcquil com wrote:

But, another way to do it would be:

cat delstu6.txt | while read x
do
userdel -r $x
done



Alternatively (TMTOWTDI):


cat delstu6.txt | xargs -n 1 userdel -r

--
Chris Hobbs       Silver Valley Unified School District
Head geek:              Technology Services Coordinator
webmaster:   http://www.silvervalley.k12.ca.us/~chobbs/
postmaster:               chobbs silvervalley k12 ca us
pgp:  http://www.silvervalley.k12.ca.us/~chobbs/key.asc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]