Hello, everybody
First of all,congrat for the forum, it's a really valuable resource for a lot a people, including me.
I don't know if this is the right place where to ask this, my question is about my homework, I'm a bit confused with an exercise, so if anybody can point me in the right direction (Or give me the answer) I'll be really gratefull:

Given a text file called users.txt with this info inside:

Peter:7777:/home/store ;

Quinn:7777:/home/accounts ;

David:7777:/home/secondstore ;

Daniel:7777:/home/address ;

The script should create an user using the first word of each line, the second word of each line will be used as password, and the third one as the home directory.

I can only use awk or shellscripting for the exercise. The teacher pointed that one of the posible solutions includes the SYSTEM command used inside AWK...but there are other solutions using only shellscripting

I've tried to do it using USERADD command, creating a loop with a "for" etc...but nothing at the moment

Thanks for your help