I have this practice script I am working on. (See attachment) call test
It does not see the option Y as the letter Y. (I know the option and the variable are the same just a coincidence.)
I use this commend line
sudo ./test -C public -H 10.10.10.48 -Y Y
I want when the -Y option has a Y for the lastd variable to be 4.
I am a total beginner at bash scripting please be easy on me :-)