Shell Script
Hey Everyone.
Im new to Linux and i have been asked at work to write a script. Im sort of struggling with it. anyway what i need it to do is: Have a file called "userlist" and a script called "addusers". the userlist file has the fields "username, password, group, fullname". ok i need this script to read the userlist file (i got that working) Ive also been trying the grep command to search for certian words etc. But now i need to be able to capture those words that grep finds and make them global varibles or something so i can then create a user account from the data grep found. Can anyone steer me in the right direction, any help is very much appreciated. Thank you so much |
Stinger,
If you post your script, you should get the comments you are looking for. |
Not complete, but something to start with:
Code:
#!/bin/bash |
I suppose this would do the job for you
Code:
#!/bin/sh |
Thank you everyone, now i have got some ideas and i will go write my own version :)
|
All times are GMT -5. The time now is 01:06 AM. |