Copy all agent jobs to separate files based on date and keep five copies Looking for a crazy script to run after database backup ...

Want to look at all agent jobs and if modified date is equal to today save it to a shared drive, if not skip. Also want to delete the oldest saved file if there are more than five.  Any help on any step would be greatly appreciated!
A couple of suggestions:


Don't ask us to write an entire system for you.  It's probably ok if you have a particular problem with how some script operates, as long as it's DBMS related.
Realize that all SQL Server Agent Jobs are stored in the msdb system database.  In order to "save" jobs you could simply take a backup of the msdb database daily.  You should do that anyway, since there is a lot of useful history, etc, stored in there.
If you really need to "script" out the jobs, they're stored in msdb in the dbo.sysjobs and dbo.sysjobsteps tables.