HOW TO CREATE 10 USERS IN UNIX(HP-UX) USING SHELL
SHELL SCRIPT?
Answer Posted / nimal
#!/bin/sh
for i in {1..10)
do
echo "creating user"$i;
useradd user$i;
done
to list the created users.
cat /etc/passwd
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is k shell?
How to debug the problems encountered in the shell script/program?
What is the use of break command?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What is difference between shell and bash scripting?
How do I edit a .sh file?
What are the default permissions of a file when it is created?
What is shell and terminal?
What is shift command in shell script?
What are script files?
How do scripts work?
Is shell and terminal the same?
Is shell scripting difficult?
What is bash eval?
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again