Need a Shell script to create Multiple User Accounts

Hi All,
Am New to shell scripting , Can u please Help me to Create a shell script which Creates Multiple Users (say up to 250 users) ,am using Rehat server 5 enterprise Edition .. I am really in need of this script So tat i can save time and effort for this Job ..
KIndly help me Please ...

  1. That kind of script exists in many forms and all over the 'net. You might want to brush up on your search-fu.
  2. Secondly, if you really want to save time, you should read up on basic scripting like BASH Programming - Introduction HOW-TO and http://www.tldp.org/LDP/Bash-Beginners-Guide/html/index.html.
  3. The basic pseudo-code layout for your script in bash could look like:
#shebang line
input | while read line; do
 [ necessity ] && separateLineItems
 [ getent ] || { accountExists; break; }
 performCommand || log error
done
exit gracefully
  1. Fill in the pseudocode if you can, in any case post the complete and valid command line to create a user named "user" for your system, and if those users have their unique home and group created as well, and if those users are part of any other groups, and how your users will be delivered to you (free text, comma or tab-separated, etc).