Sure, just use something like:
Code:
PATH=/your/path/here
GREATEST_MTIME=0
STAT=/usr/bin/stat
for FNAME in $PATH/*; do
if [ `$STAT -c %Y $FNAME` -gt $GREATEST_MTIME ]; then
MOST_RECENT_MODIFIED=$FNAME;
fi;
done
export MOST_RECENT_MODIFIED
Note: untested, but should either work as is or be pretty close.