need a simple bash script

to gather the cpu utilization from a system in 5 minute intervals and direct output to file.

I'm new at scripting and while this seems like an easy task I'm confused on where to start. thanks for any help

That depends on what OS you're using.

Sounds like you're collecting performance data, might I suggest you take a look at munin?

Munin - Trac