unix shell script function with parameters