> *Hi Cormac,*
>> What about some AWK? ;)
>> It is very simple, just try that...
>> awk '{print "userdel " $1 "-r"}' users.txt | bash
>> ...where users.txt is the list of users you want to delete,
> one at a line, just like below:
>> john
> paul
> aline
> etc...
>> Have fun!
Thanks for that. I will include that in the list of possibilities!
I used to dabble in AWK, and then found that Perl/Python did everything
I needed. The Sys Admin work is only a minor part of the job (sadly, in
a way) and I find I get rusty very easily and forget what I used to
know... I even had a perl script that used to do this, but that was 5+
years ago.
Thanks for all who responded with suggestions.
Regards,
Cormac.
The information contained in this email is confidential and is designated solely for the attention of the intended recipient(s). If you have received this email in error, please do not use or transmit it for any purpose but rather notify us immediately and delete all copies of this email from your computer system(s). Unless otherwise specifically agreed by our authorised representative, the views expressed in this email are those of the author only and shall not represent the view of or otherwise bind Athlone Institute of Technology. Contact administrator at ait.ie or telephone 090 6471858.
_____________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!