I am trying to use command line flags with normal UNIX syntax, command -abc,
and split the flags into an array variable. The following works but I can't
figure out how to handle the errors. I'm working in IRIX 6.5.7.
if ("$1" !~ -[a,b,c]*) then
echo "Usage bla bla bla"
set flag=`getopt abc $*`
I did find a way to trap errors in the 1st flag but I can't trap the 2nd
This is my first post. I hope it's appropriate and formatted correctly.