in reply to Issue with getopts : Not getting the value as passed on command line

See getopts. The synopsis shows how to differentiate between an option that does not take an argument and one that takes an argument.

You most likely want n: as option instead of n.

Replies are listed 'Best First'.
Re^2: Issue with getopts : Not getting the value as passed on command line
by rahulme81 (Sexton) on Apr 06, 2016 at 14:14 UTC
    Thanks Corion