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
What is web script?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
What is a command line shell?
What are the default permissions of a file when it is created?
How can you find out how long the system has been running?
Explain about shebang?
What is the best shell scripting language?
How to print the first array element?
How to get the first line from a file using just the terminal?
What is the difference between grep and egrep?
Can shell script run on windows?
Explain how you Automate your application using Shell scripting.
Explore about environment variables?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
write a shell script to check the failed jobs?