Writing a script on creating and comparing users

Hello Everybody
i am a newbie to the bash scripting.please can someone help me out here.i want to write a script on creating 10 users with passwords and comparing the users to the ones in /etc/passwd file.am i gonna use arrays in creating the 10 users or what?and again, how do i compare both files i.e /etc/passwd and the list of the 10 users.

thanks
Bruno

Questions on this topic are quite frequently asked in these forums. Did you do an intensive search?