Hi, I am a new member to unix.com.
Actually I am facing a problem with getopts. In my script i have used getopts to parse the parameters. when i use the script as shown below its working fine:
find_status -p all ### where find_status is a script name.
But even if I pass more than one value with option "-p", the second value is not considered (its desired) and the script works.
find_status -p all abc ###'all' and 'abc' are argument values.
My problem is that how can i show an error if i pass more than one value to a parameter.
Please help me out.