Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How to debug the problems encountered in the shell script/program?

1068


What happens on a system call?

946


How do scripts work?

990


What does it mean to debug a script?

991


How do I run a bin bash script?

967


What is the default ubuntu terminal?

1050


Can you write a script to portray how set –x works?

947


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

1110


What are different types of shell?

876


Why is shell scripting important?

971


What is shell variable?

859


What are the advantages of shell script?

964


Is shell scripting a language?

972


How do I run a powershell script?

1041


What are the types of script?

1087