PDA

View Full Version : how could i create 1000 files with different name by a script?


tusheng
08-27-02, 23:40
i'm trying to create 1000 mq manager by using the command

"crtmqm mqmname",how could i write the script? My current shell is ksh!

Roelwe
08-28-02, 05:21
What do you mean by mq manager?
The following script will just create 1000 files, named: prefix_<number>


i=1001
count=1
while [ $count -lt $i ]
do
touch prefix_$count
count=`expr $count + 1`
done