I have this shell script:
for i in "$@"
do
case $i in
-l=*|--ddloc=*)
DDLOC="${i#*=}"
shift # past argument=value
;;
*)
# unknown option
;;
esac
done
Its working fine as -x=y
but i want to be like -x y
. What changes will be required here?