case statement for different cmd arguments

view full story

http://www.unix.com – Hello friends, I have a boubt passing different arguments at a time for any one option in below code. I would also like to check which option has been selected (any one of i, r, u ) so that whether or not matching argument passed can be verified. for i and r - install and re-install - I want to pass directory path and for u -upgrade - I want to pass list of patches to be upgraded. Is there a way I can catch i, r, u option value in a variable and match them with the argument pass for that option. Code: while getopts :iru: OPTION         do     (HowTos)