Linux is an operating system that is designed to look like Unix. MacOS X is based in part on BSD Unix, and is fully POSIX-compliant. Where Linux is also POSIX-compliant, the commands will be equivalent.
In looking over my script, I'm hesitant to share it because it's a bit ugly, is tightly tailored to my environment, and risks causing more confusion than it clears up. It does a whole lot of other stuff -- if there are discrepancies between the two main copies, it compares to a third copy, but the third copy is on my laptop and is incomplete, so most of the code involves handling that case.
If you're looking to run from cron, start with "man cron" and "man crontab". But it looks like the modern way to do this is with launchctl; if you're just learning this from scratch, you're probably better off figuring out how to do it with launchctl.