Shell scripting
Hi everyone,
I am A.chandrasekhar, a beginner of Linux admin and i want to study shell scripting, please any one can help me how to write a script? 1. Write a shell script it needs to create a user with necessary fields like firstname,lastname,username,password,confirm pwd, and here we have some conditions like pwd and confirm pwd doesnot match it needs to print pwd doesnot match and later user will create. Please help me out to write this script in a easy way, so i can understand easily as a beginner. Thanks & Regards, A.Chandrasekhar |
please post the code that you have written so far and we will help debug.
|
Quote:
There are THOUSANDS of very easily-found shell scripting tutorials you can find with a brief Google search...since you want to 'study', which one(s) have you looked up so far? |
Help .... yes
Write it for you ... no |
Blog entry on scripting
Also see Habitual's list of useful links, many of which are BASH scripting guides. Start your own homework and if/when you get stuck, ask more well informed questions; you'll get some assistance that way. |
Quote:
You can use e.g useradd and read. Really very easy to do. Wouldn't take more than a minute or two. |
Typed in 'shell script add user' at Google.com
Here is the first of millions of results. Code:
#!/bin/bash |
All times are GMT -5. The time now is 12:49 PM. |