On 02/25/2011 09:25 AM, admin at lctn.org wrote:
> I'm helping a school set up a new email server after the old one crashed. Is there a script I can run against a text file of email addresses to create users on the new  server ? 

 Something more advanced than...

sed -e 's/@.*$//' < file-of-email-addresses.txt | xargs useradd

 ...?  (Protip: Add "echo " in front of "useradd" to test.)

 YMMV on the actual command to add users.

     Jima