"#!/bin/bashfor i in `seq 1 3`;do/usr/local/apache2/bin/htdigest /home/naresh/passwd "Test ID" user$idone"
Replace 3 in above script with the number of your usernamerequirement. In this user name will be user1, user2 and user3.
ThanksNaresh