read stdin in function in bash script read stdin in function in bash script shell shell