Delete files older than 2 days using shell script in Unix

I'm new to shell script.... can any one help...

What is the shell script to delete the files older than 2 days ?

find . -type f -mtime +2 -exec rm {} +

Thanks for a quick reply.
how to get this command in a shell script...... and how do we recall shell scripts?

Just write the specified line into a file. Plus start the file with the reference to the shell used to execute it :

supernova:~# echo '#!/bin/bash
> find . -type f -mtime +2 -exec rm {} \;' > myscript
supernova:~# cat myscript
#!/bin/bash
find . -type f -mtime +2 -exec rm {} \;

Then execute the script by calling it through your favorite shell:

supernova:~# bash myscript

Or make it executable and launch it as is:

supernova:~# chmod +x myscript
supernova:~# ./myscript

Hope this helped
Santiago