Installing Apache with Shellscript

Hi,
I want shell script for installing apache. Please give explain to script. I am learning shell script now only.