From: Stephane CHAZELAS on
2008-04-21, 15:37(+00), Kenny McCormack:
> In article <slrng0pcl9.gg3.syscjm(a)sumire.gwu.edu>,
> Chris Mattern <matternc(a)comcast.net> wrote:
> ...
>>Look, Ma, no temp files!
>>
>>[[ "$(find . -maxdepth 1 -cmin +60 -name file)" = "" ]] && echo "old"
>
> Let's count the minutes until one of the standards jockeys comes along
> and tells you that that requies GNU tools...

That requires GNU or FreeBSD tools.

And as you pointed out, it should have been

find file -prune -cmin +60 -print | grep -q .

Or you could have used

find file -chour +1 -exit 0 -o -exit 1

If you have the proper implementation/version of find.

--
St�phane