Script to read through a file and create new users/assign them to groups in Ubuntu

Hi all. I need a shell script that can, in short, read through a text file line by line and create a new user in Ubuntu, as well as assign that user to a group. The format of the text file is not important but preferably: 'username:group'. I don't have much programming knowledge no matter shell script so any help is appreciated. thank you.

Did you consider searching these forums? In the section "More UNIX and Linux Forum Topics You Might Find Helpful" at the bottom of this page, you might already find what you need..

Sorry, I am new to the forum and did have a look around online before hand but must have missed it. Thanks a lot.

Give it a try, and if you get stuck, come back with your script, so we can help you out.