Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2002
    Posts
    9

    Lightbulb Unanswered: how could i create 1000 files with different name by a script?

    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!

  2. #2
    Join Date
    Aug 2002
    Location
    Belgium
    Posts
    534
    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
    rws

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •