There is a command
newusers. From its man page:
Quote:
DESCRIPTION
The newusers command reads a file of user name and clear-text password pairs and uses this information to update a group of existing users or to create new users. Each line is in the same format as the standard password file (see passwd(5)) with the following exceptions:
. . .
|
If you already have it, or can install it, it may be better than a script.