how to trunkate queue name

hi,

i want to know if there is a way to trunkate queue name by scritping.

For example lets say that we have a queue named “abcd$_xyz”, what i want is to eliminate everything after the $ sign for example and change the queue name to “abcd$” but i want to do it in a script coz i have 1000 queues i want to change in the same way and they all have the “_xyz” suffix.

Thx,

  1. export queue list on file:
/queue simple export compact file=myqueue
  1. open with notepad the file myqueue.rsc

  2. use search and replace function to find _xyz and replace with nothing,

  3. delete all simple queue

  4. Import modified myqueue.rsc file

Thanks for sharing