Linux Script which uses user defined variables
I know how to do this as an MSDOS batch file, but i have ZERO experience with linux scripts, i think i need to use BASH but i have a specific immediate requirement, basically i'm being VERY lazy, and hoping someone can point me in the right direction
I need a script which performs the following, lets call the script setup
so if i type in setup username groupname
the following would happen:
1) In the users home directory a folder called home would be created
2) the newly created folder home would be assigned chown username:groupname
3) the folder would then be assigned chmod 775
So for example i have a user called joey who's primary group in year9 i currently type in the following:
chown joey:year9 home
chmod 775 home
What type of script would be the best to achive this?
Where can i look for idiot level instructions on this type of script?
I need a script as i have 250 users to do this for