Skip to content
Advertisement

Tag: validation

not allow multiple option in getopts of bash script

Having bash script as follows Above script run fine with different option but i wanted to extend it to not allow to pass multiple option at same time like as following argument should be not valid means some way it give me error like wrong syntax i achieved it by as follows but it seems to long it is as

Advertisement