#!/bin/bash
# Usage:
# morerecent file1 file2
if [[ `stat -f %c "$1"` > `stat -f %c "$2"` ]];
then
echo "$1"
else
echo "$2"
fi
Note: It seems stat is infamously implementation dependent so the format/parameters may be different for your machine.