Bash. getopts command. option that will do smth in the end of the program : Problem:
If my program takes option '-v' it should print "Good bye!" in the end of the program. I can do this, buy it will print is in the beginning. So i need some command that will execute it in the end, if any. Or how can i do this?  

     getopts "v" opt
     case ${opt} in
     v) echo "Good bye!"
     esac