Creating functions in shell script

hi friends,

I am working with shell commands and all these works properly.
Then i created a small function which includes these commands.

Now the problem arises. When the commands are run by calling this fuction.it
shows error.
Why i am not able to run the unix command inside a function.
Please note i am not working as an user.
the main commands i use are awk,cp,date etc

Please help

no double posting. read the rules. thread closed!