I have the following for loop ::--->
nbqueryname () {
for i in `cat $1`
do
echo "$i \c"
bpgetconfig -M $i | grep "^CLIENT_NAME"
done
}
I would like t make $1 either a single name or a file with multiple names...
Right now it's setup to take a file with multiple names...
How can I make it either or?
Thanks....
Joe Despres
nbqueryname () {
for i in `cat $1`
do
echo "$i \c"
bpgetconfig -M $i | grep "^CLIENT_NAME"
done
}
I would like t make $1 either a single name or a file with multiple names...
Right now it's setup to take a file with multiple names...
How can I make it either or?
Thanks....
Joe Despres