#!/usr/bin/ksh
# Written By    : Kynan Dent
# Written On    : 17/10/2003
# Function      : qnd (quick 'n dirty) runs a runqmsc command from the command line
#                 and pipes it through a grep filter and then whatever else you want
#                 ie To get a listing of all Q names with a CL in them you would:
#                 qnd 'dis q(*)'

read SHELL
if [ "$SHELL" = "" ]; then
        SHELL=cat
fi
(runmqsc<<EOF
$*
EOF
) | grep -v ^AMQ | $SHELL