In the last episode (Dec 27), Odhiambo Washington said: > I am trying to determine the time of last modification of a file, on > FreeBSD. > > The following code achieves the same on Linux: > > # AGE = (current time) - (time of last modification of "$FILE") > # please check your systems 'stat' command! > AGE=$(($(date +%s) - $(stat -c '%Y' "$FILE"))) > > test $AGE -lt $DELAY && { > echo -n yes > exit 0 > }
You can use "stat -f '%m' $FILE", which is identical to Linux's "stat -c '%Y' $FILE" . -- Dan Nelson [EMAIL PROTECTED] _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"