HOW TO CREATE 10 USERS IN UNIX(HP-UX) USING SHELL
SHELL SCRIPT?
Answer Posted / dibala
#!/bin/ksh
set -x #on
#variable
i=1
while [ i let 10 ]
do
/usr/sbin/useradd user$i -d /home/user$i -s /bin/ksh -m
user$i
i=$(expr $i + 1)
done
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How to print all the arguments provided to the script?
What are "c" and "b" permission fields of a file?
What are the different types of commonly used shells on a typical linux system?
What is sh in shell script?
What is difference between bash and shell?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
How do I run a shell script in powershell?
How do you know which shell I am using?
Print the 10th line without using tail and head command.
Which is better perl or shell scripting?
What is console line?
What is shell scripting used for?
What is $1 in shell scripting?
What is bash eval?
How do we delete all blank lines in a file?