How do I ignore one character in a case statement? PLEASE HELP!

Hello, I am new to this forums. I need help with shell, and ksh in particular. I have a case statement that does something if -k. So it looks like:

case $arg in
-k) PUT=y, SEND=1

Thats all good and dandy. But now I want to change it where whether or not the user puts -k or not, it will do PUT=y, SEND=1. So pretty much, it has to ignore -k. How can I do that? If I want to put an or statement such as -k|"") PUT=y, SEND=1 how come that doesn't work? Please help!

Thank you very much in advance!

You can use the *) construct

case $1 in
        case1_match)
                #command(s) for case1
        ;;   
        case2_match)
                #command(s) for case2
        ;;
        *)
                #no match, so default case commands
        ;;
esac


I doubt it; do you really want the value of $PUT to be 'y,' ?

Leave out the case statement and just use the assignments.