demo function in bash program.