I wish to have long and short forms of command line options invoked using my shell script.
I know that getopts can be used, but like in Perl, I have not
getopts
In ksh93, getopts does support long names...
ksh93
while getopts "f(file):s(server):" flag do echo "$flag" $OPTIND $OPTARG done
Or so the tutorials I have found have said. Try it and see.