the first post wasnt complete so i edited it now.
I have been given a task to write a script that will add a group of users from an input file. This shell script has to also provide some help information when users use a wrong command pattern.
•If user start myaddusers incorrectly, i.e. without any parameters or too many parameters, the program should show the basic help for the user. For example, show the usage of command
•If user type myaddusers –h, the program will give detailed information about the program and userlistfile structure.
The userlist file is a text file, which contains the users’ details to create the accounts. The userlist file has the following structure.
• Each line is a user record.
• The record has 4 fields
I have no idea where to start etc
does anyone know where i can find simular script so i can make some changes to it ?
thasnks a lot